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
2
votes
1 answer

Release pipeline couldn't find .runsettings file while executing tests on machine

I have created a release pipeline in azure for my .Net core test project. I am using runsettings file to store test inputs for my selenium automation project. While running the pipeline it's getting failed with error - Assembly Initialization…
2
votes
1 answer

Runsetting file NOT WORKING with SpecFlow+MSTest+SpecRun.Specflow

I checked almost all stack overflow and Microsoft documentation on how to read parameters from .runsettings file in MSTest and tried all the approaches but none worked for me. I am using .NETCore 2.2, VS 2019, Selenium, SpecFlow+ Runner. Does not…
born2Learn
  • 1,253
  • 5
  • 14
  • 25
2
votes
1 answer

runsettings test file values not being applied

I have downloaded Visual Studio 2019 and the Coded UI components and am currently trying to run web browser automation testing. The test is working fine but the test.runsettings file that I have created and attached to the CodedUITest via Test >…
2
votes
1 answer

Recommendations on runsettings file for connection string override

I have several tests projects in C# that use Database to perform tests. I'd like to create a runsettings file in order to override connection string to this DB at test execution time when using Azure DevOps. I have not succeeded in writing the…
Bertrand Pons
  • 257
  • 2
  • 18
2
votes
0 answers

Not working with vstest.console.exe when .runsettings file is specified - MS Test

I am using MSTest project to automate my system. The test project work fine. But I need to run the test project in my production with out installing visual studio. So that I am using VSTest.Console.exe command-line. My Login method as below …
Krishan
  • 169
  • 2
  • 12
2
votes
1 answer

Visual Studio - Run Automated TestMethods with a specific TestCategory value

In Visual Studio web app, I'm adding a task after the deployment has successfully built the environment to run smoke tests. The smoke tests have a TestCategory of 'SmokeTest'. What I'm trying to accomplish is to have the task only run TestMethods…
Tscott
  • 465
  • 6
  • 21
2
votes
2 answers

Using runsettings file when running NUnit tests via command line

I created a runsettings file which looks like this And then in my TestSetup portion…
Tree55Topz
  • 1,102
  • 4
  • 20
  • 51
2
votes
0 answers

codecoverage isn't checking a project I want, and runsettings doesn't seem to fix it

I have a solution. In that solution, I have 4 projects, and an additional project for tests. Coverage is checking 2 of those projects and the test project. I don't really care about excluding the tests, but I do need the 1 project that is for some…
Matt G
  • 1,661
  • 19
  • 32
2
votes
1 answer

Any way to make VS 2015 remember runsettings file?

We use a .runsettings file to enforce 64 bit execution environment (and appropriate code coverage) for unit tests in visual studio 2015. While more than half of the time VS will remember the selected file when opening a solution, it does sometimes…
StingyJack
  • 19,041
  • 10
  • 63
  • 122
2
votes
3 answers

How to change run as java application settings in Eclipse

I am doing a Java project in Eclipse on Windows. I implemented some methods and tried to test them. But, in Eclipse run or run as seem to be empty. When I try to right click to my project on package explorer and choose run as Java Application, a…
kalahari
  • 895
  • 5
  • 15
  • 34
1
vote
1 answer

Differences between Code Coverage in Visual Studio VS TFS configuration

I'm working in C# on Visual Studio and my builds run on TFS. This week I enabled code coverage via my tfs build (Let's assume that I have a .sln Names MySln and there is Tests.MySln there too). The code coverage via tfs stood on 6% and it's weird…
Noa Sasson
  • 23
  • 4
1
vote
1 answer

How do I assign RunSettings in VS2019 Enterprise?

In Visual Studio 2017 Enterprise, assigning RunSettings files can typically be done here, under "Test" > "Test Settings": However, I don't see anything relevant when going to "Test" on Visual Studio 2019 Enterprise (Preview 4.0): Where can I…
natn2323
  • 1,983
  • 1
  • 13
  • 30
1
vote
0 answers

Generating Runsettings configuration file during VSTS Build Task "Visual Studio Test"

To start my main issue is seeing differing code coverage outputs between visual studios 2017, and VSTS (Azure Dev Ops) build pipeline task "Visual Studios Test". When analyzing the code coverage in visual studios, I am using 2017, for my solution's…
1
vote
0 answers

Can I update Test Default Runsettings to x64 for a Visual Studio 2019 solution?

Whenever I open up a VS 2017 project for the first time, or after an operation like git clean, I have to select "Test" -> "Test Settings" -> "Default Processor Architecture" and set it to x64. In VS 2019 (or 2017 if I missed some way to do this),…
Paul Epperson
  • 191
  • 1
  • 7
1
vote
0 answers

How to specify xUnit Test Names in .runsettings file

I have a XUnit test project. I am planning to use .runsettings file and I need to specify the TEST NAMES which I have to run in .runsettings file. I am going to run the test in commandline using "dotnet vstest" command and specifying the test dll…