Skip to content

Commit

Permalink
Run engine.core.tests under net5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CharliePoole committed Jan 15, 2022
1 parent fd57dfa commit 3cda91a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,8 @@ Task("TestEngineCore")
.Description("Builds and tests the engine core assembly")
.IsDependentOn("TestNet20EngineCore")
.IsDependentOn("TestNetStandard20EngineCore")
.IsDependentOn("TestNetCore31EngineCore");
// .IsDependentOn("TestNet50EngineCore");
.IsDependentOn("TestNetCore31EngineCore")
.IsDependentOn("TestNet50EngineCore");

Task("TestEngine")
.Description("Builds and tests the engine assembly")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ public void ServiceIsStarted()
}


#if NETCOREAPP3_1_OR_GREATER
#if NET5_0_OR_GREATER
[TestCase("mock-assembly.dll", false, typeof(NUnitNetCore31Driver))]
[TestCase("mock-assembly.dll", true, typeof(NUnitNetCore31Driver))]
//[TestCase("notest-assembly.dll", false, typeof(NUnitNetCore31Driver))]
#elif NETCOREAPP3_1
[TestCase("mock-assembly.dll", false, typeof(NUnitNetCore31Driver))]
[TestCase("mock-assembly.dll", true, typeof(NUnitNetCore31Driver))]
[TestCase("notest-assembly.dll", false, typeof(NUnitNetCore31Driver))]
Expand All @@ -49,8 +53,10 @@ public void ServiceIsStarted()
[TestCase("junk.dll", false, typeof(InvalidAssemblyFrameworkDriver))]
[TestCase("junk.dll", true, typeof(InvalidAssemblyFrameworkDriver))]
[TestCase("nunit.engine.dll", false, typeof(InvalidAssemblyFrameworkDriver))]
#if !NET5_0 // Not yet working
[TestCase("nunit.engine.dll", true, typeof(SkippedAssemblyFrameworkDriver))]
[TestCase("notest-assembly.dll", true, typeof(SkippedAssemblyFrameworkDriver))]
#endif
public void CorrectDriverIsUsed(string fileName, bool skipNonTestAssemblies, Type expectedType)
{
var driver = _driverService.GetDriver(AppDomain.CurrentDomain, Path.Combine(TestContext.CurrentContext.TestDirectory, fileName), null, skipNonTestAssemblies);
Expand Down

0 comments on commit 3cda91a

Please sign in to comment.