question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

coverlet.collector format: possible to specify without runsettings file?

See original GitHub issue

This section of the docs suggests that it’s possible to set the Format option without needing a runsettings file. (Possibly with a runsettings command line argument after -- ?)

If so, provide an example.

If not, please clarify in the docs that changing any options, including format, requires a runsettings file. (If true, this is pretty obnoxious compared to the way it works with MSBuild integration.)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
ItsVeryWindycommented, Jun 5, 2020

In case anyone wants to know, It is possible to set the format although it’s a bit long winded, for example.

DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover

1reaction
MarcoRossignolicommented, Jun 5, 2020

Asap I’ll add documentation on it, not the best way but better than nothing for now

Read more comments on GitHub >

github_iconTop Results From Across the Web

coverlet/Documentation/VSTestIntegration.md at master
Without specifying a runsettings file and calling coverlet by just the name of the collector, the result of the generated coverage output is...
Read more >
Configure unit tests by using a .runsettings file
In Solution Explorer, on the shortcut menu of your solution, choose Add > New Item, and select XML File. Save the file with...
Read more >
Customizing Code Coverage Analysis - Visual Studio
You can also specify different formats from the command-line by either specifying it in the runsettings file or specifying it in a parameter....
Read more >
specified .runsettings file not used in code coverage run - ...
1 Answer 1 ... You cannot exclude classes using runsettings file by just providing the class name. ... YourNamespace.YourClass.Method(parameters);.
Read more >
Using .runsettings to exclude assemblies from code coverage
I'm facing a similar issue, with a much simpler file. With the default runsettings file, I'm able to get code coverage. When I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found