Skip to content

NonTestAssembly Attribute

Mikkel Nylander Bundgaard edited this page May 17, 2019 · 3 revisions

This is an assembly-level attribute, which may be used to specify that even though the assembly referes 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