1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 04:53:29 +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> <TargetFramework>net7.0</TargetFramework>
<VSTestLogger>nunit</VSTestLogger> <VSTestLogger>nunit</VSTestLogger>
<VSTestResultsDirectory>TestResults.FNA</VSTestResultsDirectory> <VSTestResultsDirectory>TestResults.FNA</VSTestResultsDirectory>
<RunSettingsFilePath>Tests.FNA.runsettings</RunSettingsFilePath>
<RootNamespace>Tests</RootNamespace> <RootNamespace>Tests</RootNamespace>
<DefineConstants>$(DefineConstants);FNA</DefineConstants> <DefineConstants>$(DefineConstants);FNA</DefineConstants>
<IsPackable>false</IsPackable> <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> <TargetFramework>net7.0</TargetFramework>
<VSTestLogger>nunit</VSTestLogger> <VSTestLogger>nunit</VSTestLogger>
<VSTestResultsDirectory>TestResults</VSTestResultsDirectory> <VSTestResultsDirectory>TestResults</VSTestResultsDirectory>
<RunSettingsFilePath>Tests.runsettings</RunSettingsFilePath>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
</PropertyGroup> </PropertyGroup>

View file

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

View file

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