Questions tagged [runsettings]

Unit tests in Visual Studio can be configured by using a *.runsettings file. (The file name doesn’t matter, provided you use the extension ‘.runsettings.’) For example, you can change the .NET Framework on which the tests will be run, the directory where test results are delivered, and the data collected during a test run.

Unit tests in Visual Studio can be configured by using a *.runsettings file. (The file name doesn’t matter, provided you use the extension ‘.runsettings.’) For example, you can change the .NET Framework on which the tests will be run, the directory where test results are delivered, and the data collected during a test run.

Questions regarding syntax/utilization of the .RunSettings file should use this tag.

https://msdn.microsoft.com/en-us/library/jj635153.aspx

49 questions
0
votes
1 answer

Is there a way to configure a runsettings file to only check the actual project under test?

I need a way to dynamically set a runsettings file to check code coverage only on the actual code under test. This means excluding any nuget dlls. This needs to be dynamic in some way so that tfs build definitions can use them.
Rasen244
  • 137
  • 1
  • 2
  • 11
0
votes
1 answer

Using DataSource attribute with .runsettings file

I am currently using Visual Studio 2017 and have upgraded my .testsettings file to a .runsettings file. My goal is to use the runsettings file with a TFS build to update certain parameters as needed for a build, but would like to access test…
Brian
  • 124
  • 1
  • 9
0
votes
1 answer

How to reference .runsettings file values in C# unit test methods?

I am using Microsoft's WinAppDriver in conjunction with Visual Studio 2015 unit tests to automate testing of Windows applications. These tests are being run from the command line using VSTest.exe because I can pass a .runsettings file as a parameter…
0
votes
1 answer

Automatically generate Code Coverage during nightly build

I have some problems getting the code coverage .coverage file generated in nightly build. What I have: I've configured my build to use a .runsettings file and Type of run settings : CodeCoverageEnabled The build is correctly running all the required…
1 2 3
4