Yes.  Using NUnit I decorate a test that should only be run on MySQL 5.0 as
[Category("5.0")].  Same for others.  Some tests may not be working right so
I'll decorate them as [Category("NotWorking")].

And then I run my tests like nunit-console ..... /exclude=5.0,NotWorking if
I was testing on 4.1 for example.




On 1/14/07, Graham Hay <[EMAIL PROTECTED]> wrote:

Perfect sense. How do you indicate 5.0 and higher, do you use multiple
categories?

On 14/01/07, Reggie Burnett < [EMAIL PROTECTED]> wrote:
>
> I would not mind the ! syntax but have to have the ability to filter
> individual tests by category.  I have tests that can only be run on certain
> versions of MySQL so at present I run NUnit 3 times, the first time
> indicating that 5.0 and higher tests be exluded, the second time
> indicating that 5.1 and higher tests be excluded, and the final time
> including all tests.  Make sense?
>
> On 1/14/07, Graham Hay <[EMAIL PROTECTED] > wrote:
> >
> > Yes, /fc is the short version of /filter-category. You can currently
> > use this command line argument to select tests marked with a specific
> > [FixtureCategory], I was wondering whether those looking for a way to
> > exclude by category would be satisfied with using the ! operator instead of
> > a separate argument? This is a feature for inclusion in version 2.4.
> > There is a [TestCategory] attribute but there is, at present, no way to
> > filter using it.
> >
> > On 14/01/07, Reggie Burnett < [EMAIL PROTECTED] > wrote:
> > >
> > > I'm unfamiliar with the syntax of the mbunit runners.  Does /fc
> > > indicate a fixture category?  Does mbunit make a distinction between a
> > > fixture category and a test category?  How would I exclude a specific test
> > > by category?
> > >
> > > On 1/13/07, Graham Hay <[EMAIL PROTECTED] > wrote:
> > > >
> > > >
> > > > For those interested in excluding categories using the console
> > > > ( http://www.mertner.com/jira/browse/MBUNIT-82), would
> > > > /fc:!category be
> > > > an acceptable syntax instead of /exclude:category?
> > > >
> > > > On Jan 4, 8:54 pm, "Reggie" < [EMAIL PROTECTED] > wrote:
> > > > > Can we exclude categories using the two runners?  If not, any
> > > > word on
> > > > > when that will be available?
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >

>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to