Skip to content

Instantly share code, notes, and snippets.

@lars-nielsen lars-nielsen/.runsettings
Last active Jan 23, 2020

Embed
What would you like to do?
Quest to have NUnit3TestAdapter placed in the autogenerated TestResults/{Guid} folder
<?xml version="1.0" encoding="utf-8" ?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="XPlat code coverage">
<Configuration>
<Format>json</Format>
<IncludeTestAssembly>false</IncludeTestAssembly>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
<InProcDataCollectionRunSettings>
<InProcDataCollectors>
<InProcDataCollector assemblyQualifiedName="Coverlet.Collector.DataCollection.CoverletInProcDataCollector, coverlet.collector, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null"
friendlyName="XPlat Code Coverage"
enabled="True"
codebase="coverlet.collector.dll" />
</InProcDataCollectors>
</InProcDataCollectionRunSettings>
<NUnit>
<Verbosity>1</Verbosity>
</NUnit>
</RunSettings>
"C:\Program Files\dotnet\dotnet.exe" test C:\Code\MyProject\Tests\MyTest\MyTest.csproj --configuration Release --no-build --settings .runsettings --verbosity Normal
# The above command will create the folders TestResults\d0899c23-b2f2-49b5-88aa-5728f4cb245b and place my coverage file as:
# C:\Code\MyProject\Tests\MyTest\TestResults\d0899c23-b2f2-49b5-88aa-5728f4cb245b\coverage.json
# I would like to have my TestsResults.xml file placed in the same folder
# C:\Code\MyProject\Tests\MyTest\TestResults\d0899c23-b2f2-49b5-88aa-5728f4cb245b\TestsResults.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.