Skip to content

Commit

Permalink
The test error can be accessed through ScenarioContext.Current.TestEr…
Browse files Browse the repository at this point in the history
…ror (e.g. in an AfterScenario event).
  • Loading branch information
gasparnagy committed Jun 17, 2010
1 parent 963e6ad commit ca74597
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/ScenarioContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> PendingSteps { get; private set; }
internal List<string> MissingSteps { get; private set; }
internal Stopwatch Stopwatch { get; private set; }
Expand Down
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca74597

Please sign in to comment.