The *.runsettings file is an XML file that contains different configuration elements within the RunSettings element. Or -settings:nsettings test.dllįor more information, see command-line options. Open Developer Command Prompt for Visual Studio.Įnter a command similar to: MyTestAssembly.dll /EnableCodeCoverage /Settings:nsettings To run tests from the command line, use, and specify the settings file by using the /Settings parameter. Specify a run settings file from the command line
While selected, the run settings file applies whenever you select Analyze Code Coverage. The file appears on the Test menu, and you can select or deselect it. To specify a run settings file in the IDE, select Test > Select Settings File. Visual Studio 2019 version 16.3 and earlier