Skip to content

NonTestAssembly Attribute

Chris Maddock edited this page Jun 13, 2020 · 3 revisions

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.

  [assembly: NonTestAssembly]

See also...

Clone this wiki locally