VSTest Runsettings samples


This blog is a collection of useful runsettings files that would help drive the VSTest runner. You can find documentation and schema of the runsettings xml here.

 

Functionality Description
TestRunParameters
runsettings
These are key-value pairs you pass into your tests based on the environment they are run on or simply a dynamic configuration that the tests need. More details here
TestAdaptersPaths
runsettings
One or more paths pointing to where custom test adapters are located.
AssemblyResolution
runsettings
Helps specify additional resolution paths to search for dependencies when running tests. This is only applicable for MSTest based tests.
DataCollector - Dynamic Code coverage
runsettings
Enables dynamic code coverage for the test session.
Emulator 10.0 Anniversary edition
runsettings
Enables running UWP based tests on an Emulator 10.0.14393.0 WVGA 4 inch 512MB.
Emulator 8.1
runsettings
Enables running UWP based tests on an Emulator 8.1 WVGA 4 inch 512MB.
Device
runsettings
Enables running UWP based tests on a Windows Phone Device.
AppxInstallTimeout
runsettings
Specifies the installation timeout for a UWP test projects app package. The default value is 30 seconds and if for some reason the app takes longer time to install, then this helps tell the vstest engine to wait the specified amount of time before it decides that something went wrong with the app install and terminate connection with a "Error: (0x5B4) Operation timed out. Unable to install Windows app package in 30 sec"

 

Happy unit testing!


Comments (1)

Skip to main content