infosum / cypress-tags

Use custom tags to slice up Cypress test runs
84 stars 20 forks source link

Allow before and beforeEach to be tagged #139

Open dve opened 2 years ago

dve commented 2 years ago

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

annaet commented 2 years ago

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

annaet commented 2 years ago

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 commented 1 year ago

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 commented 5 hours ago

Could I contribute?