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

Allow before and beforeEach to be tagged #139

Open
dve opened this issue Dec 16, 2021 · 4 comments
Open

Allow before and beforeEach to be tagged #139

dve opened this issue Dec 16, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@dve
Copy link

dve commented Dec 16, 2021

It would be nice to have before and beforeEach also be able to respect tags

@annaet
Copy link
Contributor

annaet commented Jan 5, 2022

Thanks @dve, this is a good idea. I'll look into it.

@annaet annaet added the enhancement New feature or request label Jan 5, 2022
@annaet
Copy link
Contributor

annaet commented Jan 5, 2022

If it helps in the short term you can always wrap your before/after hooks and tests inside a tagged describe? Or did you have a scenario where you wanted to have different tags on the before/after hooks within the same block?

@Eonfuzz
Copy link

Eonfuzz commented Jun 13, 2023

If it helps in the short term you can always wrap your before/after hooks and tests inside a tagged describe? Or did you have a scenario where you wanted to have different tags on the before/after hooks within the same block?

A good use case for this is to have some beforeEach steps tagged as DataCreation, allowing you to enable or disable manual data creation at will.

@sdkdeepa
Copy link

Could I contribute?

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

No branches or pull requests

4 participants