1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-24 21:48:35 +01:00

improved test separation for MG and FNA projects

This commit is contained in:
Ell 2023-05-25 09:22:38 +02:00
parent 2627736283
commit 34cb5210b5
5 changed files with 17 additions and 3 deletions

View file

@ -3,6 +3,7 @@
<TargetFramework>net7.0</TargetFramework>
<VSTestLogger>nunit</VSTestLogger>
<VSTestResultsDirectory>TestResults.FNA</VSTestResultsDirectory>
<RunSettingsFilePath>Tests.FNA.runsettings</RunSettingsFilePath>
<RootNamespace>Tests</RootNamespace>
<DefineConstants>$(DefineConstants);FNA</DefineConstants>
<IsPackable>false</IsPackable>

View file

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

View file

@ -3,6 +3,7 @@
<TargetFramework>net7.0</TargetFramework>
<VSTestLogger>nunit</VSTestLogger>
<VSTestResultsDirectory>TestResults</VSTestResultsDirectory>
<RunSettingsFilePath>Tests.runsettings</RunSettingsFilePath>
<IsPackable>false</IsPackable>
</PropertyGroup>

View file

@ -4,7 +4,8 @@
<DataCollectors>
<DataCollector friendlyName="XPlat Code Coverage">
<Configuration>
<Exclude>[FNA]*,[FontStashSharp.FNA]*,[Tests*]*</Exclude>
<Include>[MLEM*]*</Include>
<Exclude>[*.FNA]*</Exclude>
</Configuration>
</DataCollector>
</DataCollectors>

View file

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