Skip to content

Commit

Permalink
Split out unit and integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwhitney committed Apr 16, 2020
1 parent 55fc149 commit e2bc843
Show file tree
Hide file tree
Showing 178 changed files with 31 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CoreBoy.Test.Integration/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using NUnit.Framework;

[assembly: Parallelizable(ParallelScope.Children)]
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void testOamBug2()

private static FileInfo getPath(String name)
{
var root = "C:\\Users\\David Whitney\\OneDrive\\Desktop\\coffee-gb-netcore\\CoreBoy.Test.Unit\\roms";
var root = "C:\\Users\\David Whitney\\OneDrive\\Desktop\\coffee-gb-netcore\\CoreBoy.Test.Integration\\roms";
return new FileInfo(Path.Combine(root, "blargg", name));
}
}
Expand Down
19 changes: 19 additions & 0 deletions CoreBoy.Test.Integration/CoreBoy.Test.Integration.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CoreBoy\CoreBoy.csproj" />
</ItemGroup>

</Project>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static object[][] getParameters(String dirName, List<String> excludes, Se
{
searchOption ??= SearchOption.AllDirectories;

var root = "C:\\Users\\David Whitney\\OneDrive\\Desktop\\coffee-gb-netcore\\CoreBoy.Test.Unit\\roms";
var root = "C:\\Users\\David Whitney\\OneDrive\\Desktop\\coffee-gb-netcore\\CoreBoy.Test.Integration\\roms";
var dir = Path.Combine(root, dirName);
var paths = Directory.EnumerateFiles(dir, "*.gb", searchOption.Value).ToList();
paths.RemoveAll(path => excludes.Any(path.Contains));
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 7 additions & 1 deletion CoreBoy.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ VisualStudioVersion = 16.0.29409.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoreBoy", "CoreBoy\CoreBoy.csproj", "{60E453D9-A335-4F3D-A0B6-63CAE0EC6947}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoreBoy.Test.Unit", "CoreBoy.Test.Unit\CoreBoy.Test.Unit.csproj", "{89AA3401-3EB7-4C96-8429-B28E9BE93754}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoreBoy.Test.Unit", "CoreBoy.Test.Unit\CoreBoy.Test.Unit.csproj", "{89AA3401-3EB7-4C96-8429-B28E9BE93754}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoreBoy.Test.Integration", "CoreBoy.Test.Integration\CoreBoy.Test.Integration.csproj", "{EAB44CCA-A65A-48CC-8ABB-096205788883}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -21,6 +23,10 @@ Global
{89AA3401-3EB7-4C96-8429-B28E9BE93754}.Debug|Any CPU.Build.0 = Debug|Any CPU
{89AA3401-3EB7-4C96-8429-B28E9BE93754}.Release|Any CPU.ActiveCfg = Release|Any CPU
{89AA3401-3EB7-4C96-8429-B28E9BE93754}.Release|Any CPU.Build.0 = Release|Any CPU
{EAB44CCA-A65A-48CC-8ABB-096205788883}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EAB44CCA-A65A-48CC-8ABB-096205788883}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EAB44CCA-A65A-48CC-8ABB-096205788883}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EAB44CCA-A65A-48CC-8ABB-096205788883}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit e2bc843

Please sign in to comment.