Execute VSTest Tests
  • 14 May 2021
  • 1 Minute to read
  • Dark
    Light
  • PDF

Execute VSTest Tests

  • Dark
    Light
  • PDF

Article Summary

This is generated from the built in components of BuildMaster 7.0.0, 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:

NameFormatScript UsageUsage 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

Was this article helpful?