C
C#10mo ago
kmanjt

.runsettings Coverage Pattern Not Working

Hello can someone please help me fix my runsettings to only collect from the "Controllers" folder:
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<!-- Configurations for data collectors -->
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="XPlat code coverage">
<Configuration>
<CodeCoverage>
<!-- Include anything in the project Controllers folder -->
<Functions>
<Include>
<Function>^Controllers[/\\].*</Function>
</Include>
</Functions>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<!-- Configurations for data collectors -->
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="XPlat code coverage">
<Configuration>
<CodeCoverage>
<!-- Include anything in the project Controllers folder -->
<Functions>
<Include>
<Function>^Controllers[/\\].*</Function>
</Include>
</Functions>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>
Currently this is collecting for everything and I am running it like so:
dotnet test --settings .runsettings
dotnet test --settings .runsettings
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server