NUnit 3.0 usage of categories with where:cat== format

657 views
Skip to first unread message

Iulian Chitan

unread,
Dec 15, 2015, 8:19:19 AM12/15/15
to NUnit-Discuss
Hello,

I am trying to run a couple of webdriver tests using the NUnit console runner. I have upgraded to the 3.0 version. I have a question related to categories. Using the old version a was doing something like this:
                   /include=A-B                                 - this was to run all tests with category A, but don't have category B
                   /include=-                                      - this was to run all tests from an assembly, no matter what category.

From what I am seeing, the nunit 3.0 console runnner doesn't support "/include" anymore, so I am using "where:cat==" format, but i didn't found how can i replace the structure above. Could someone give me some hints related to this?

Thanks,
Iulian.



 



Charlie Poole

unread,
Dec 15, 2015, 11:21:48 AM12/15/15
to NUnit-Discuss
Hi Iulian,

For your example, use --where "cat==A && cat !=B".

See https://github.com/nunit/nunit/wiki/Test-Selection-Language for a
full description of usage.

Note that you may now use hyphens in a category name, so A-B would be
taken as the name of a category.

Charlie
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nunit-discus...@googlegroups.com.
> To post to this group, send email to nunit-...@googlegroups.com.
> Visit this group at https://groups.google.com/group/nunit-discuss.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages