Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit 1f22bbb

Browse files
authored
Updated readme
1 parent 62822f8 commit 1f22bbb

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

README.md

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
machine.specifications.runner.console
2-
=============================
1+
MSpec, like other testing frameworks, provides a robust command-line runner that can be used to execute specs in one or more assemblies and allows a number of output formats to suit your needs. The runner is provided as a [separate package](http://www.nuget.org/packages/Machine.Specifications.Runner.Console/) and can be installed with the following commands:
2+
3+
```bash
4+
cmd> nuget install Machine.Specifications.Runner.Console
5+
```
6+
7+
Or use the Package Manager console in Visual Studio:
8+
9+
```powershell
10+
PM> Install-Package Machine.Specifications.Runner.Console
11+
```
12+
13+
The runner comes in different flavors:
14+
15+
* `mspec.exe`, AnyCPU, runs on the CLR 2.0
16+
* `mspec-x86.exe`, x86, runs on the CLR 2.0
17+
* `mspec-clr4.exe`, AnyCPU, runs on the CLR 4.0
18+
* `mspec-x86-clr4.exe`, x86, runs on the CLR 4.0
19+
20+
Usage of the command-line runner is as follows (from `mspec.exe --help`):
21+
22+
```text
23+
Usage: mspec.exe [options] <assemblies>
24+
Options:
25+
-f, --filters Filter file specifying contexts to execute (full type name, one per line). Takes precedence over tags
26+
-i, --include Executes all specifications in contexts with these comma delimited tags. Ex. -i "foo,bar,foo_bar"
27+
-x, --exclude Exclude specifications in contexts with these comma delimited tags. Ex. -x "foo,bar,foo_bar"
28+
-t, --timeinfo Shows time-related information in HTML output
29+
-s, --silent Suppress progress output (print fatal errors, failures and summary)
30+
-p, --progress Print dotted progress output
31+
-c, --no-color Suppress colored console output
32+
-w, --wait Wait 15 seconds for debugger to be attached
33+
--teamcity Reporting for TeamCity CI integration (also auto-detected)
34+
--no-teamcity-autodetect Disables TeamCity autodetection
35+
--appveyor Reporting for AppVeyor CI integration (also auto-detected)
36+
--no-appveyor-autodetect Disables AppVeyor autodetection
37+
--html <PATH> Outputs the HTML report to path, one-per-assembly w/ index.html (if directory, otherwise all are in one file)
38+
--xml <PATH> Outputs the XML report to the file referenced by the path
39+
-h, --help Shows this help message
40+
Usage: mspec.exe [options] <assemblies>
41+
```

0 commit comments

Comments
 (0)