Skip to content

Commit ead2132

Browse files
committed
Exclude the UI layer from coverage
The *.UI assembly (Views/WinForms) is not exercised by the test infrastructure. Exclude the whole UI module instead of only its Views source folder, so the coverage percentage reflects testable code.
1 parent 9cf1d65 commit ead2132

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

coverage.runsettings

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
<Exclude>
1313
<ModulePath>.*FakeItEasy.*</ModulePath>
1414
<ModulePath>.*\.Tests\.dll$</ModulePath>
15+
<!-- The UI layer cannot be exercised by the test infrastructure -->
16+
<ModulePath>.*[\\/]MoBi\.UI\.dll$</ModulePath>
1517
</Exclude>
1618
</ModulePaths>
1719
<Sources>
1820
<Exclude>
1921
<Source>.*\.Designer\.cs$</Source>
20-
<Source>.*[\\/]MoBi\.UI[\\/]Views[\\/].*</Source>
2122
</Exclude>
2223
</Sources>
2324
</CodeCoverage>

0 commit comments

Comments
 (0)