From ca74597ccc780c97644684d1266f9c9a1ee13bb8 Mon Sep 17 00:00:00 2001 From: Gaspar Nagy Date: Thu, 17 Jun 2010 16:58:42 +0200 Subject: [PATCH] The test error can be accessed through ScenarioContext.Current.TestError (e.g. in an AfterScenario event). --- Runtime/ScenarioContext.cs | 2 +- changelog.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/ScenarioContext.cs b/Runtime/ScenarioContext.cs index fb81d21ce..f9b60b86d 100644 --- a/Runtime/ScenarioContext.cs +++ b/Runtime/ScenarioContext.cs @@ -26,7 +26,7 @@ static public ScenarioContext Current public ScenarioBlock CurrentScenarioBlock { get; internal set; } internal TestStatus TestStatus { get; set; } - internal Exception TestError { get; set; } + public Exception TestError { get; internal set; } internal List PendingSteps { get; private set; } internal List MissingSteps { get; private set; } internal Stopwatch Stopwatch { get; private set; } diff --git a/changelog.txt b/changelog.txt index 8880fa68d..3863a46fd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,8 @@ New features: + Using standard Gherkin parser (http://github.com/aslakhellesoy/gherkin) v2.0.1 + Custom XSLT can be specified for generating reports. See examples in Tests/ReportingTests/CustomXsltTemplate.feature ++ The test error can be accessed through ScenarioContext.Current.TestError + (e.g. in an AfterScenario event). Fixed issues: + NullReference exception when using BeforeTestRun event (Issue 41)