A console MSTest runner
Lightweight, standalone, no external dependencies.
Cross-platform, works on Microsoft .NET, Mono, Windows, Linux, and Mac OSX.
Reflection-based, works with test assemblies built against any version/variant of the MSTest dll.
Multi-process, runs test assemblies in their own isolated TestRunner
processes.
Provides System.Diagnostics.Trace output.
Provides test timing information.
Provides detailed exception information in the case of failures.
Supports [TestClass], [TestMethod], [TestInitialize], [TestCleanup], [ClassInitialize], [ClassCleanup], [AssemblyInitialize], [AssemblyCleanup], [ExpectedException], and [Ignore].
Supports test assembly .config
files (but not on Mono yet due to a
bug)
Microsoft .NET Framework v4.0 or newer, or Mono v2.10 or newer.
TestRunner.exe <testassembly> [...]
<testassembly> - Path to an assembly containing MSTest tests
0 if all <testassembly>s listed on the command line PASS
- OR -
Non-zero in all other cases
A <testassembly> is said to PASS if all test, initialization, and cleanup
methods it contains execute successfully
- OR -
It contains no tests
- OR -
It is not a .NET assembly
A <testassembly> is said to FAIL in all other cases, including if the file
does not exist.
C:\> TestRunner.exe C:\Path\To\TestAssembly.dll C:\Path\To\AnotherTestAssembly.dll
$ mono --debug TestRunner.exe /path/to/TestAssembly.dll /path/to/AnotherTestAssembly.dll
Available as a NuGet package named TestRunner.
Use Visual Studio, MSBuild, or XBuild.
Older versions of XBuild may not understand the tools and language versions in the project file(s).
Try xbuild /toolsversion:4.0 /property:LangVersion=default
.
Copyright (c) 2012-2017
Ron MacNeil <https://github.com/macro187>
Rickenberg <https://www.codeplex.com/site/users/view/Rickenberg>
JDeltorp <https://github.com/JDeltorp>
Forked from https://testrunner.codeplex.com/ revision 87713 on September 24th, 2016.