Back to Nunit

NonTestAssembly

docs/articles/nunit/writing-tests/attributes/nontestassembly.md

latest577 B
Original Source

NonTestAssembly

This is an assembly-level attribute, which may be used to specify that even though the assembly refers to NUnit it does not contain any tests. This attribute can be used in connection with the command line option --skipnontestassemblies of the console to skip assemblies without failing.

Example

The following code, which might be placed in AssemblyInfo.cs, specifies that the assembly does not contain any tests.

csharp
[assembly: NonTestAssembly]

See Also