diff --git a/MatterControlApplication.cs b/MatterControlApplication.cs index 67994822c..6a8ba9788 100644 --- a/MatterControlApplication.cs +++ b/MatterControlApplication.cs @@ -83,10 +83,7 @@ namespace MatterHackers.MatterControl commandLineArgs.CopyTo(testCommands, 2); } testDispatch.RunTests(testCommands); - if (testDispatch.HadErrors) - { - return; - } + return; } //WriteTestGCodeFile(); diff --git a/Testing/TestingDispatch.cs b/Testing/TestingDispatch.cs index 8d026bd30..f48b9b64f 100644 --- a/Testing/TestingDispatch.cs +++ b/Testing/TestingDispatch.cs @@ -31,6 +31,17 @@ namespace MatterHackers.MatterControl.Testing try { MatterHackers.GCodeVisualizer.GCodeFile.AssertDebugNotDefined(); } catch (Exception e) { DumpException(e); } + + try { MatterHackers.Agg.Graphics2D.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + try { MatterHackers.Agg.UI.SystemWindow.AssertDebugNotDefined(); } + catch (Exception e) { DumpException(e); } + + if (!HadErrors) + { + File.Delete(errorLogFileName); + } } void DumpException(Exception e)