Skip to content

M3talen/testrunner

 
 

Repository files navigation

TestRunner

A console MSTest runner

Description

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)

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 test, initialization, and cleanup methods succeeded. Otherwise, non-zero.

Examples

Windows

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

Unix or Mac

$ mono --debug TestRunner.exe /path/to/TestAssembly.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.

Projects

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

License

MS-PL

Copyright

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

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 92.0%
  • PowerShell 7.1%
  • Smalltalk 0.9%