Traits

The Trait attribute is used to specify custom categorizations of Facts and Fixtures. These can be used to isolate test runs to certain characteristics. For example, you might specify an "Integration" trait, and mark any tests that cross known boundaries, e.g. file, database, web requests, etc.: [Fixture, Trait("Integration")] function CanResolveDatabaseConnection(){ [...] }

These traits can then be specified in the console command, to either exclude, or run exclusively, the trait or traits specified:

Exclude: cscript xUnit.js.Console.js /-trait:Integration Examples/Tests

Exclusive: cscript xUnit.js.Console.js /trait:Integration Examples/Tests