Skip to content

Using The Command Line to Run Tests

Jason Kerney edited this page Sep 26, 2015 · 4 revisions

Nuget

Add the FeldSpar Console Test Runner Nuget package to your test project. This adds FeldSpar.ContinuousIntegration.exe to your project as a copy always resource.

This may require you to restart Visual Studio

Running the Tests

  1. Build your test project

  2. Navigate to the bin folder

  3. Open a Command Prompt

  4. Run FeldSpar.ContinuousIntegration.exe using --a and the path to the test program

    If you are running this from the bin folder your path should look like .\MyTests.exe

    If using Gold Master testing remember to use --ur to see the results reported via a reporter

Console args

--test-assembly [--a] <string>: This is the location of the test library. It can be a *.dll or a *.exe file

--report-location [--r] <string>: This flag indicates that a JSON report is to be generated at the given location

--verbosity [--v] <string>: This sets the verbosity level for the run. Possible levels are: ["Max"; "Results"; "Errors"; "Detail"]

--usereporters [--ur]: This enables the use of reporters configured in the test

--help [-h|/h|/help|/?]: display this list of options.

Clone this wiki locally