Skip to content

Commit

Permalink
Merge pull request #942 from TestCentric/issue-941
Browse files Browse the repository at this point in the history
Display error if settings file is corrupted
  • Loading branch information
CharliePoole authored Feb 6, 2023
2 parents cd8655e + 46c4f45 commit c1b1621
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Task("Test")
args.Append($"\"{test}\" ");

var guiTester = new GuiTester(parameters);
Information ($"Running {parameters.OutputDirectory + GUI_RUNNER} with arguments {args}");
guiTester.RunGuiUnattended(parameters.OutputDirectory + GUI_RUNNER, args.ToString());
var result = new ActualResult(parameters.OutputDirectory + "TestResult.xml");

Expand Down
10 changes: 9 additions & 1 deletion src/TestCentric/testcentric.gui/AppEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ public static int Main(string[] args)
}

log.Info("Instantiating TestModel");
ITestModel model = TestModel.CreateTestModel(options);
ITestModel model = null;
try
{
model = TestModel.CreateTestModel(options);
}
catch(Exception ex)
{
MessageDisplay.Error(ex.Message);
}

log.Info("Constructing Form");
TestCentricMainView view = new TestCentricMainView();
Expand Down

0 comments on commit c1b1621

Please sign in to comment.