|
|
|
@ -215,8 +215,6 @@ partial class Build : NukeBuild |
|
|
|
RunCoreTest("Avalonia.DesignerSupport.Tests"); |
|
|
|
}); |
|
|
|
|
|
|
|
[PackageExecutable("JetBrains.dotMemoryUnit", "dotMemoryUnit.exe")] readonly Tool DotMemoryUnit; |
|
|
|
|
|
|
|
Target RunLeakTests => _ => _ |
|
|
|
.OnlyWhenStatic(() => !Parameters.SkipTests && Parameters.IsRunningOnWindows) |
|
|
|
.DependsOn(Compile) |
|
|
|
@ -224,10 +222,7 @@ partial class Build : NukeBuild |
|
|
|
{ |
|
|
|
void DoMemoryTest() |
|
|
|
{ |
|
|
|
var testAssembly = "tests\\Avalonia.LeakTests\\bin\\Release\\net461\\Avalonia.LeakTests.dll"; |
|
|
|
DotMemoryUnit( |
|
|
|
$"{XunitPath.DoubleQuoteIfNeeded()} --propagate-exit-code -- {testAssembly}", |
|
|
|
timeout: 120_000); |
|
|
|
RunCoreTest("Avalonia.LeakTests"); |
|
|
|
} |
|
|
|
ControlFlow.ExecuteWithRetry(DoMemoryTest, delay: TimeSpan.FromMilliseconds(3)); |
|
|
|
}); |
|
|
|
|