1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 04:53:29 +01:00

exclude non-MLEM projects from coverage

This commit is contained in:
Ell 2023-05-24 23:57:53 +02:00
parent 5266d00796
commit 2627736283
2 changed files with 14 additions and 1 deletions

12
Tests/Tests.runsettings Normal file
View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector friendlyName="XPlat Code Coverage">
<Configuration>
<Exclude>[FNA]*,[FontStashSharp.FNA]*,[Tests*]*</Exclude>
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>

View file

@ -32,7 +32,8 @@ Task("Build").IsDependentOn("Prepare").Does(() =>{
Task("Test").IsDependentOn("Build").Does(() => {
var settings = new DotNetTestSettings {
Configuration = config,
Collectors = {"XPlat Code Coverage"}
Collectors = {"XPlat Code Coverage"},
Settings = "Tests/Tests.runsettings"
};
DotNetTest("MLEM.sln", settings);
DotNetTest("MLEM.FNA.sln", settings);