Details
Description
The only time the story fails is if the final example parameterised scenario fails. I'll try and work on a test case/patch...
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Mauro Talevi [ maurotalevi ] | |
| Fix Version/s | 4.0 [ 18486 ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Summary | Story succeeds even though a parameterised scenario fails | FailingUponPendingStep strategy not honoured |
| Affects Version/s | 4.0 [ 18486 ] | |
| Affects Version/s | 4.x [ 18279 ] |
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
This is happening because PerformableTree.performCancellable(RunContext, Story) checks context.failureOccurred() which looks at the context State. If the final example succeeded, this state is FineSoFar, even though previous examples failed.
I'm afraid I don't know enough to patch this one myself