Comment 12 for bug 1057981

Revision history for this message
Simone Busoli (simone.busoli) wrote : Re: [Bug 1057981] Re: C#5 async tests are not supported

I agree Charlie, I'm not aware of the current status of V3 so I just
assumed it was not ready for prime time, but if it makes sense to add it
there then it's probably going to be easier by far.

Simone

On Fri, Sep 28, 2012 at 6:20 PM, Charlie Poole <email address hidden> wrote:

> @Simone:
>
> I'm OK with your experimenting with this to see if something can be
> done. We can add NUnitV2 back to the affected projects if it turns out
> to be relatively simple: i.e.: if we don't have to change the basically
> sequential execution pattern that is implemented in NUnit 2.6.
>
> However, I did point out in the StackOverflow thread that there is lots
> you can already do in NUnit with asynchronous calls, provided you don't
> expect NUnit to recognize async tests. So long as the user does an await
> in the test, there won't be an issue as far as I can tell. Perhaps you
> should first check me on that.
>
> @Anthony:
>
> Since NUnit 2.x is built targeting .NET 2.0, I'm not sure how a Task
> return type would help us. Can you clarify?
>
> @everyone:
>
> Frankly, I'd rather hurry up with NUnit 3.0 than spend time on a
> half-a**ed fix of NUnit 2.6.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1057981
>
> Title:
> C#5 async tests are not supported
>
> Status in NUnit Test Framework:
> Triaged
> Status in NUnitLite Testing Framework:
> Triaged
>
> Bug description:
> If a method is marked async, nunit does not recognise it as a test,
> and some test runners may incorrectly pass it while it is still
> running. These methods actually return a Task not void, and the test
> can only be passed if the task completes without a failure.
>
> As detailed here http://anthonysteele.co.uk/async-and-await-with-nunit
>
> MSTest supports async tests
>
> http://blogs.msdn.com/b/visualstudioalm/archive/2012/03/13/what-s-new-for-mstest-unit-tests-in-visual-studio-11-beta.aspx
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunit-3.0/+bug/1057981/+subscriptions
>