Traits
Organizing Tests With xUnit Traits
Last updated
Organizing Tests With xUnit Traits
Last updated
Once you start to have a larger number of tests it can be important to be able to break them down into different categories or groupings. From a functionality perspective this allows you to only run a subset of tests. They can also help to provide clarity or insight to your test code, by replacing comments or bloated test names with code based cues to preconditions or domain of the tests.