BuildMaster Documentation

General - Execute VSTest Tests

  • Last Modified: 2020-06-26

This is generated from the built-in components of BuildMaster 6.2.13, and may be different than what you have installed (especially if you have extensions); go to [User Icon] > Documentation within your BuildMaster instance to see exactly what operations are available.

Execute VSTest Tests

Runs VSTest unit tests on a specified test project, recommended for tests in VS 2012 and later.

Script usage:

WindowsSdk::Execute-VSTest(
	TestContainer: <text>,
	[Group: <text>],
	[Arguments: <text>],
	[ClearExistingTestResults: <true/false>],
	[VsTestPath: <text>]
);

Arguments:

Name Format Script Usage Usage Notes
Test container
text
TestContainer
This argument is required.
Test group
text
Group
Additional arguments
text
Arguments
Clear existing results
true/false
ClearExistingTestResults
When true, the test results directory will be cleared before the tests are run.
VSTest Path
text
VsTestPath
The path to vstest.console.exe, typically:

%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe

Leave this value blank to auto-detect the latest vstest.console.exe using vswhere.exe

Is this documentation incorrect or incomplete? Help us by contributing!

This documentation is licensed under CC-BY-SA-4.0 and stored in GitHub.

Generated from commit ced119d5 on master