Permalink
Browse files

Minor test and packaging fixes after testing the build

  • Loading branch information...
1 parent da73b9b commit 501d1745f5b1dfd724b92ba0fe6304ac3b1f2955 @rprouse rprouse committed Apr 19, 2016
Showing with 11 additions and 1 deletion.
  1. +9 −1 build.cake
  2. +2 −0 src/NUnitConsole/nunit3-console.tests/CommandLineTests.cs
View
@@ -476,6 +476,8 @@ var BinFiles = new FilePath[]
};
// Not all of these are present in every framework
+// The Microsoft and System assemblies are part of the BCL
+// used by the .NET 4.0 framework. 4.0 tests will not run without them
var FrameworkFiles = new FilePath[]
{
"AppManifest.xaml",
@@ -491,7 +493,13 @@ var FrameworkFiles = new FilePath[]
"nunitlite.tests.exe",
"nunitlite.tests.dll",
"slow-nunit-tests.dll",
- "nunitlite-runner.exe"
+ "nunitlite-runner.exe",
+ "Microsoft.Threading.Tasks.dll",
+ "Microsoft.Threading.Tasks.Extensions.Desktop.dll",
+ "Microsoft.Threading.Tasks.Extensions.dll",
+ "System.IO.dll",
+ "System.Runtime.dll",
+ "System.Threading.Tasks.dll"
};
Task("PackageSource")
@@ -529,6 +529,8 @@ public void ShouldSetTeamCityFlagAccordingToArgsAndDefauls(bool hasTeamcityInCmd
public void ShouldNotFailOnEmptyLine()
{
var testListPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "TestListWithEmptyLine.tst");
+ // Not copying this test file into releases
+ Assume.That(testListPath, Does.Exist);
var options = new ConsoleOptions("--testlist=" + testListPath);
Assert.That(options.errorMessages, Is.Empty);
Assert.That(options.TestList, Is.EqualTo(new[] {"AmazingTest"}));

0 comments on commit 501d174

Please sign in to comment.