ming86 / testrunner

A console MSTest runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TestRunner

A console MSTest runner

Description

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)

Requirements

Microsoft .NET Framework v4.0 or newer, or Mono v2.10 or newer.

Synopsis

TestRunner.exe <testassembly> [...]

Options

<testassembly> - Path to an assembly containing MSTest tests

Exit Status

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.

Examples

Windows

C:\> TestRunner.exe C:\Path\To\TestAssembly.dll C:\Path\To\AnotherTestAssembly.dll

Unix or Mac

$ mono --debug TestRunner.exe /path/to/TestAssembly.dll /path/to/AnotherTestAssembly.dll

NuGet Package

Available as a NuGet package named TestRunner.

Building

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.

License

MS-PL

Copyright

Copyright (c) 2012-2017
Ron MacNeil <https://github.com/macro187>
Rickenberg <https://www.codeplex.com/site/users/view/Rickenberg>
JDeltorp <https://github.com/JDeltorp>

History

Forked from https://testrunner.codeplex.com/ revision 87713 on September 24th, 2016.

Continuous Integration

Appveyor (Windows)

Build status

Travis (Linux)

Build Status

About

A console MSTest runner

License:Other


Languages

Language:C# 98.8%Language:Smalltalk 1.2%