Repository navigation
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.
The following code, which might be placed in AssemblyInfo.cs, specifies that the assembly does not contain any tests.
[assembly: NonTestAssembly]-
--skipnontestassembliesin Console-Command-Line
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
-
NUnit
-
Release Notes
-
License
- Getting Started
- Writing Tests
- Running Tests
- Extending NUnit
- Technical Notes
-
Release Notes
- NUnit Xamarin Runners
- VS Test Adapter
- VS Test Generator
- NUnit Analyzers