Passing additional arguments to dotnet test
See original GitHub issueIs it possible to pass additional options to the dotnet test command, when running via the .NET test explorer? If not, would it be difficult to add a setting?
E.g. dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov
We want this feature so that we can generate a coverage file from https://github.com/tonerdo/coverlet/ so that it can be picked up by https://github.com/ryanluker/vscode-coverage-gutters .
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:11 (1 by maintainers)
Top Results From Across the Web
c# - How to pass parameters to the dotnet test command while ...
Unfortunately, the only way to pass settings from dotnet test into NUnit is to use a .runsettings ...
Read more >Passing test run parameters when using dotnet test ... - GitHub
@mikkelbu is correct, it isn't currently possible to pass command line parameters using dotnet test to the underlying test adapter/framework.
Read more >dotnet test command - .NET CLI | Microsoft Learn
The dotnet test command is used to execute unit tests in a given project. ... Specifies extra arguments to pass to the adapter....
Read more >[Solved]-Passing arguments to dotnet test project?-.net-core
At this moment, there is no way to pass parameters to any .net test project. You could use the mstest testsettings/runsettings file, but...
Read more >Passing parameters to NUnit tests using Azure Pipelines
For the test step in your pipeline YAML, use the .NET Core CLI task (e.g. DotNetCoreCLI@2 ) to call the dotnet test command....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be fixed with dotnet-test-explorer.testArguments, give it a spin =)
In addition to enabling general args, when they release code coverage into
dotnet
CLI on both Windows and Linux we should consider adding this as a special option. Something likedotnet-test-explorer.generateCodeCoverage=[true[default]|false]
https://github.com/Microsoft/vstest-docs/blob/master/RFCs/0021-CodeCoverageForNetCore.md