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:
parent
2627736283
commit
34cb5210b5
5 changed files with 17 additions and 3 deletions
|
@ -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>
|
||||
|
|
12
Tests/Tests.FNA.runsettings
Normal file
12
Tests/Tests.FNA.runsettings
Normal 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>
|
|
@ -3,6 +3,7 @@
|
|||
<TargetFramework>net7.0</TargetFramework>
|
||||
<VSTestLogger>nunit</VSTestLogger>
|
||||
<VSTestResultsDirectory>TestResults</VSTestResultsDirectory>
|
||||
<RunSettingsFilePath>Tests.runsettings</RunSettingsFilePath>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue