nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02979
Re: [Bug 1057981] Re: C#5 async tests are not supported
Jv, I've committed the complete feature in this
branch<https://code.launchpad.net/~simone.busoli/nunitv2/async-support-void-and-task-return-types>already,
I would suggest you have it a look and come up with improvements
or additional test scenarios eventually. For instance I'm not 100%
confident of the implementation of the custom synchronization context, but
I didn't find any way to make any test fail yet.
Simone
On Mon, Oct 1, 2012 at 9:43 AM, Jv <jv.ravichandran@xxxxxxxxx> wrote:
> Ok, will do.
>
> I downloaded TFS 2012 express but my Windows Home Basic does not support it
> so mid-way downloading VS 2012 express...will be able to deliver some
> scenarios by this weekend.Unusual power failure in my area since morning
> may not help my cause today, it seems.
>
> Jv
>
> On Mon, Oct 1, 2012 at 3:37 AM, Charlie Poole <charlie@xxxxxxxxx> wrote:
>
> > Sounds good! One thing we need is a test assembly built in VS2012,
> > which contains all sorts of combinations of test features, for example,
> > test cases that use an async method, methods with timeout plus async,
> > methods using testcasesource, etc. The existing NUnit tests have lots
> > of examples but of course none of them can use async.
> >
> > This is actually something that would help us implement async tests
> > in all three projects... NUnit V2, NUnit 3.0 and NUnitLite
> >
> > Charlie
> >
> > On Sun, Sep 30, 2012 at 2:39 PM, Jv <jv.ravichandran@xxxxxxxxx> wrote:
> > > Sure, Charlie, but this particular problem does require more than one
> > > person I thought and hence suggested to help. I will try to
> independently
> > > simulate some similar async scenarios and then seek help on how it can
> be
> > > merged with Simone's work.
> > >
> > > Jv
> > >
> > > On Mon, Oct 1, 2012 at 2:45 AM, Charlie Poole <charlie@xxxxxxxxx>
> wrote:
> > >
> > >> Hi Jv,
> > >>
> > >> You should coordinate with Simone on this, since he has the
> > >> bug assigned. OTOH, there are tons of things to do other
> > >> than this if you want something of your own!
> > >>
> > >> Charlie
> > >>
> > >> On Sun, Sep 30, 2012 at 4:02 AM, Jv <jv.ravichandran@xxxxxxxxx>
> wrote:
> > >> > Since I am fairly free, I can work on this issue independently as a
> > >> > spike. Please point me to the appropriate files in NUnit v2.
> > >> >
> > >> > I will be working on finding if the async threads' context can be
> > >> > independently established.
> > >> >
> > >> > This will help in maintaining that tests "await"-ing a async result
> is
> > >> > testing the right context and will also help in establishing the
> > "void"
> > >> > context.
> > >> >
> > >> > Jv
> > >> >
> > >> > --
> > >> > You received this bug notification because you are subscribed to
> NUnit
> > >> > Extended Testing Platform.
> > >> > https://bugs.launchpad.net/bugs/1057981
> > >> >
> > >> > Title:
> > >> > C#5 async tests are not supported
> > >> >
> > >> > To manage notifications about this bug go to:
> > >> > https://bugs.launchpad.net/nunit-3.0/+bug/1057981/+subscriptions
> > >>
> > >> --
> > >> 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:
> > >> In Progress
> > >>
> > >> 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 subscribed to NUnit
> > > Extended Testing Platform.
> > > https://bugs.launchpad.net/bugs/1057981
> > >
> > > Title:
> > > C#5 async tests are not supported
> > >
> > > To manage notifications about this bug go to:
> > > https://bugs.launchpad.net/nunit-3.0/+bug/1057981/+subscriptions
> >
> > --
> > 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:
> > In Progress
> >
> > 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 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
> Status in NUnit V2 Test Framework:
> In Progress
>
> 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
>
--
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:
In Progress
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
Follow ups
References