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

Implement stages #17

Open
remorhaz opened this issue Oct 20, 2021 · 0 comments
Open

Implement stages #17

remorhaz opened this issue Oct 20, 2021 · 0 comments

Comments

@remorhaz
Copy link
Contributor

remorhaz commented Oct 20, 2021

Stages are sort of "flat steps" with body following the call within current context (test or step body). End of context or another stage start should finish a stage.

Proposed API: Allure::startStage(?string $name = null): void. We cannot use annotations with this API, so we'll have to use Allure::* shortcuts to decorate stage.

Problems: As for now, shortcuts such as Allure::parameter() deal with "current test" context; to implement effective stages we'll have to make them work with "current test or step" context, changing "classic" behavior. Another way to solve this problem is to provide alternate shortcuts, either in Allure::stepParameter() or AllureStep::parameter() form. We can also change "classic" behavior but provide fallbacks like Allure::testParameter() for those who want to decorate test from within a step. And one more way is to return StepContextInterface from stage starting method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant