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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jquery - Keeping Kendo Datepicker in min/max range -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -