A console MSTest runner
Lightweight, standalone, no external dependencies.
Cross-platform, works on Microsoft .NET, Mono, Windows, Linux, and Mac OSX.
Includes test timing information.
Includes detailed exception information in the case of failures.
Includes System.Diagnostics.Trace output.
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 test, initialization, and cleanup methods succeeded. Otherwise, non-zero.
C:\> TestRunner.exe C:\Path\To\TestAssembly.dll
$ mono --debug TestRunner.exe /path/to/TestAssembly.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
.
TestRunner - The TestRunner.exe
program
TestRunner.TestSuite - A unit test suite that exercises MSTest functionality
TestRunner.Tests - A unit test that runs the test
suite using TestRunner.exe
Copyright (c) 2012-2016
Ron MacNeil <https://github.com/macro187>
Rickenberg <https://www.codeplex.com/site/users/view/Rickenberg>
Forked from https://testrunner.codeplex.com/ revision 87713 on September 24th, 2016.