nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #03027
Re: [Bug 1057981] Re: C#5 async tests are not supported
Despite the fact that the bug has been fixed and NUnit can run async tests
correctly, there is this test that can still produce the same result
because of a deliberate bug I introduced in code to simulate the pre-bug
scenario.
Have a look at the code in this link -
http://ravichandranjv.blogspot.in/2012/10/when-synchronous-is-ahead-of.html
Thought it might be of interest and illuminative for some !
Jv
On Sat, Oct 6, 2012 at 8:25 PM, Charlie Poole <charlie@xxxxxxxxx> wrote:
> ** Changed in: nunitlite
> Milestone: None => 0.9
>
> ** Changed in: nunitlite
> Assignee: Simone Busoli (simone.busoli) => Charlie Poole
> (charlie.poole)
>
> --
> You received this bug notification because you are a member of NUnit
> Developers, which is subscribed to NUnit V2.
> 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
> Status in NUnit V2 Test Framework:
> Fix Committed
>
> 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
>
--
Regards,
Ravichandran Jv
http://ravichandranjv.blogspot.com
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
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
Status in NUnit V2 Test Framework:
Fix Committed
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
References