Skip to content

Commit

Permalink
Exclude unittests from code coverage results (#3053)
Browse files Browse the repository at this point in the history
* Exclude unittests from code coverage results

* Cleanup
  • Loading branch information
ngastelum-ms authored and schoims committed Jan 31, 2023
1 parent d8c2c67 commit 4c54080
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions test.runsettings
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<MSTest>
<!--
<MSTest>
<!--
Specify timeout in milliseconds.
Current timeout is set to 11mins
Current timeout is set to 11mins
(Long running test - DeviceClient_CreateFromConnectionString_TokenIsRefreshed_Mqtt takes a little over 10mins to complete.)
(Long running tests - DeviceClient_TokenIsRefreshed_Ok_Mqtt, DeviceClient_DeviceDisabled_Gives_ConnectionStatus_DeviceDisabled_AMQP take a little over 5mins to complete.)
-->
<TestTimeout>660000</TestTimeout>
</MSTest>
<TestTimeout>660000</TestTimeout>
</MSTest>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="Code Coverage"
uri="datacollector://Microsoft/CodeCoverage/2.0"
assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Configuration>
<CodeCoverage>
<ModulePaths>
<Exclude>
<ModulePath>.*tests\.dll$</ModulePath>
</Exclude>
</ModulePaths>
</CodeCoverage>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>

0 comments on commit 4c54080

Please sign in to comment.