c# - Do multiple categories lead to multiple tests, for nunit test fixtures? -
say have following setup:
[testfixture, category("acategory"), category("anothercategory")] public class someclass{ [test] public void sometest() { //testing } } how many times sometest run? once, results shown in both categories, or twice, once each category?
in nunit, categories act more filters grouping mechanism.
when selecting tests run, can include or exclude multiple categories, affect tests selected given run of test suite.
you can assign multiple categories test class or method, given run of suite, each method executed once.
Comments
Post a Comment