From d0519e211cb3b8d5087eb8a5a32f6230ded9419d Mon Sep 17 00:00:00 2001 From: larsbrubaker Date: Wed, 26 Feb 2014 14:38:15 -0800 Subject: [PATCH] Put in new tests for agg and gui release builds. --- MatterControlApplication.cs | 5 +---- Testing/TestingDispatch.cs | 11 +++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) 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)