Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend step methods with attributes allowing multiple step failures #18

Closed
5 tasks done
Suremaker opened this issue Mar 2, 2017 · 1 comment
Closed
5 tasks done
Labels
enhancement An enhancement of the feature or new feature
Milestone

Comments

@Suremaker
Copy link
Collaborator

Suremaker commented Mar 2, 2017

Progress

  • Implement MultiAssertAttribute
  • Implement detailed test scenarios
  • Ensure changes are backward-compatible
  • Extend scenario/step execution extensions to allow configuring exception handling for sub-steps
  • Update examples

Description

Currently the step execution finish on first failure.
It should be possible to mark scenario or composite step with attribute telling that all sub-steps should be executed irrespectively of their execution status and report any failures after all sub-step are executed.

Such feature would be useful if given scenario has multiple independent Then_ steps and it is desired to see the outcome of all of them.

@Suremaker Suremaker added the enhancement An enhancement of the feature or new feature label Mar 2, 2017
@Suremaker Suremaker added this to the 2.3.0 milestone Jun 26, 2017
Suremaker added a commit that referenced this issue Sep 5, 2017
Suremaker added a commit that referenced this issue Sep 11, 2017
…cutionExtension. Preserved backward compatibility.
Suremaker added a commit that referenced this issue Sep 11, 2017
Suremaker added a commit that referenced this issue Sep 11, 2017
Suremaker added a commit that referenced this issue Sep 12, 2017
Suremaker added a commit that referenced this issue Sep 13, 2017
* Implemented MultiAssertAttribute to work on scenario/composite step level and apply to sub-steps
* Introduced IStep/ScenarioDecorators in favor of IStep/ScenarioExecutionExtension. Preserved backward compatibility.
* Renamed IScenarioExecutionExtensionAttribute/IStepExecutionExtensionAttribute to IScenarioDecoratorAttribute/IStepDecoratorAttribute
* Added example scenarios
* Updated example reports
@Suremaker
Copy link
Collaborator Author

Merged to master. The feature would become available with LightBDD 2.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement of the feature or new feature
Projects
None yet
Development

No branches or pull requests

1 participant