Replies: 4 comments 11 replies
-
|
Heya @sevenam - Details are here: https://thomhurst.github.io/TUnit/docs/extensions/ |
Beta Was this translation helpful? Give feedback.
-
|
The |
Beta Was this translation helpful? Give feedback.
-
|
What about inline params? There is a way to put simple settings directly in the command? For example, for years in my projects on Azure DevOps the coverage was including also the Test projects and the third-party libraries coverage... and this was a bit frustrating because our pipelines where showing a false percentage of code coverage. This would be a convenient way to quickly pass parameters without using a XML settings file (runsettings.xml can be really frustrating sometimes). |
Beta Was this translation helpful? Give feedback.
-
|
What about default exclusions from coverage? As mentioned, test assemblies and third-party libraries are usually included in coverage, which can be confusing when you need to focus on the % coverage of your codebase. With the dotnet collector, you can exclude test assemblies with However, parameters aside, I think excluding test assemblies and third-party libraries should be the default. People usually want to focus on their codebase. So, in my opinion:
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
For xunit we've normally been creating code coverage reports with:
dotnet test --collect:"XPlat Code Coverage"Is there a way to do this with TUnit or is this a feature that's not been added yet?
Beta Was this translation helpful? Give feedback.
All reactions