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