Browse Source

Update build.cake

Wiesław Šoltés 9 năm trước cách đây
mục cha
commit
41da9ecddd
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  1. 1 5
      build.cake

+ 1 - 5
build.cake

@@ -629,13 +629,9 @@ Task("Build")
 
 Task("Run-Unit-Tests")
     .IsDependentOn("Build")
+    .WithCriteria(() => !skipTests)
     .Does(() =>
 {
-	if(skipTests)
-	{
-		Information("Skipping unit tests because of -skip-tests");
-		return;
-	}
     var pattern = "./tests/Avalonia.*.UnitTests/bin/" + dirSuffix + "/Avalonia.*.UnitTests.dll";
 
     Func<IFileSystemInfo, bool> ExcludeWindowsTests = i => {