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)