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

Add BeforeAll / AfterAll hooks #878

Merged
merged 8 commits into from
Jul 15, 2017
Merged

Add BeforeAll / AfterAll hooks #878

merged 8 commits into from
Jul 15, 2017

Conversation

charlierudolph
Copy link
Member

@charlierudolph charlierudolph commented Jul 14, 2017

@jbpros

Adding this in preparation for removing registerHandler which I removed in implementing the event protocol. I believe this was why registerHandler was originally exposed. I'll deprecate it in a follow up PR and then make a release.

@aslakhellesoy @mattwynne what do you guys think of BeforeAll/AfterAll? These are test run hooks in contrast to Before/After which are test case hooks. I was also thinking about renaming Before/After to BeforeEach/AfterEach to make the distinction a little more clear. I'd also be good naming these something like BeforeTestRun / BeforeTestCase / AfterTestCase / AfterTestRun

@aslakhellesoy
Copy link
Contributor

I'm fine with BeforeAll and AfterAll.

Please do not rename Before to BeforeEach, that would be a big departure from tradition and consistency.

@jbpros
Copy link
Member

jbpros commented Jul 14, 2017

Good stuff!

I'm fine with (Before|After)All too and I'm with @aslakhellesoy regarding the rename of scenario hooks, I'd rather keep them as they are (maybe add *Each aliases?)

@charlierudolph charlierudolph merged commit f061dad into master Jul 15, 2017
@charlierudolph charlierudolph deleted the cr-all branch July 15, 2017 04:03
charlierudolph added a commit that referenced this pull request Jul 26, 2017
@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants