This repository was archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
MSTest Integration
mckn edited this page Aug 19, 2011
·
1 revision
You can execute MSTest tests by using the mstest runnable.
The first argument is an array of assemblies to test and the second argument is a hash containing options:
target test:
test_assemblies = ("path/to/testassembly.dll", "path/to/AnotherTestAssembly.dll")
mstest(assemblies: test_assemblies, toolPath: "path/to/mstest.exe")The following options are available:
| Option | Description | Default value | Type |
|---|---|---|---|
| assembly | Path to assembly to test | [empty] | string |
| assemblies | Array of assemblies to test | [empty] | Array of strings |
| toolPath | Path to mstest executable | Runnable will search for mstest.exe at default paths* | string |
| tests | Array of specific tests to run | [empty] | Array of strings |
| options | See mstest specification | [empty] | Array of strings |
Either ‘assembly’ or ‘assemblies’ are required.
If no tool path is specified the runnable will search the following paths for mstest.exe:
- C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe
- C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe
- C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe
- C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe
Available options for MSTest:
http://msdn.microsoft.com/en-us/library/ms182489.aspx