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
1
vote
1 answer

Testhost.exe has exited with code -1 (0xffffffff)

I am attempting to override a few variables in my integration test with secrets sourced from KeyVault via a variable group within the build pipeline. I have added a .runsettings file & I'm able to retrieve the dummy variables when I debug through…
MauiT
  • 11
  • 2
1
vote
1 answer

Why can't I specify TestAdaptersPaths in my runsettings file?

I'm working on getting NUnit tests running pre-deploy to Azure so I built an application to run tests: https://github.com/EdLichtman/HelloAzureCI When I run this on my own PC everything works correctly, 3 unit tests pass and one fails (as I expect…
user3654055
  • 178
  • 14
1
vote
1 answer

Write the trx file to a known location on TFS(CI server) using vstest as the test runner

We need a way to access the trx file generated by vstest test runner on CI server (TFS 2013) so that I can inject some missing elements to it before generating living documentation (Specification by example style) using Pickles(a tool that read the…
Rasika
  • 312
  • 1
  • 7
  • 19
1
vote
1 answer

Is there a way to include 'Remote Controller name' in *.runsettings file?

I'm having a integrated environment with TFS BuildServer + TestControler + Several TestAgents. Previously I used a *.testsettings file and define the remote server under Roles. I update the BuildServer to VS2013 and introduced SpecRun for test…
1
vote
2 answers

Visual Studio .runsettings excluding too many assemblies

I am using a .runsettings file to manage the assemblies which generate code coverage results. With the following section in my .runsettings file I get all the assemblies including my test projects some unwanted TFSBuildExtensions assemblies: 1 ClassLevel
Tom
  • 31
  • 2
0
votes
1 answer

I have multiple TestRunParameters in an nunit .runsettings file. How can I loop over them?

I have a really simple .runsettings file for nunit that looks like this:
samantha
  • 171
  • 1
  • 1
  • 8
0
votes
1 answer

ViewportSize in .runsettings?

I'm using NUnit and would like to start the browser in a custom size ViewportSize, I know that it is possible through overriding the ContextOptions() method, however I was wondering if this were to be possible by .runsettings also. I've tried to add…
0
votes
1 answer

Runsettings producing empty results

I am trying to configure my runsettings file to output only coverage for projects that have the name Adaptive in it, excluding tests. I only want to look in the src directory local to the solution I am in. So, totally stuck, for some reason this…
Nicholas Mayne
  • 1,694
  • 14
  • 18
0
votes
1 answer

XUnit How To Exclude Tests From JetBrains dotCover

I have a solution with multiple unit tests projects. And for code coverage i am using JetBrains dotCover So the goal here is to exclude the Migrations folder I have added a runsettings file named .runsettings in the root of the test…
KARIM Yassine
  • 143
  • 1
  • 11
0
votes
1 answer

Having an issue with relative paths in .runsettings for output folders using NUnit 3.13.3 in Visual Studio 2017

I am using NUnit 3 with Visual Studio 2017. I am trying to store both TRX and XML test results into the same output folder. The problem I am having is that the .runsettings path is relative to the Solution folder, whereas the…
Ken
  • 72
  • 8
0
votes
0 answers

Specflow test runsettings & usersecrets

I have some specflow tests which use runsettings files to pass parameters through to the test cases and some of these parameters are secrets. In our build pipeline & release pipelines on ADO I have it figured out that I can choose the run settings…
Webezine
  • 345
  • 7
  • 22
0
votes
1 answer

nunit3 inline runsettings args fail to parse on Mac

please, can anyone tell what format should I use to pass runsettings args to test? According to their example, it should be: dotnet test -- TestRunParameters.Parameter(name=\"\", value=\"\") but this way it ends with an error: zsh:…
0
votes
1 answer

How to use Specflow srsprofile in mstest runsettings

One of my projects uses spec flow + MSTest + MSBuildGeneration tool. I have few filter tags defined in my srsprofile and created a runsettings file something like below