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

Tags not working as expected with multi --env option #244

Closed
mnesti opened this issue Sep 25, 2019 · 3 comments · Fixed by #352
Closed

Tags not working as expected with multi --env option #244

mnesti opened this issue Sep 25, 2019 · 3 comments · Fixed by #352
Labels

Comments

@mnesti
Copy link

mnesti commented Sep 25, 2019

Hi,

Case

My project have multi features and my bug occure when I use sub-scenario with multi --env option (with personal variables)

Example

I have a feature with multi tags as :

Feature: check forms

@formac
Scenario: ...

@formVE
Scenario...

@formBK
Scenario: ...

Behavior

  • If I used this command npx cypress-tags run -e TAGS=@formVE it's ok, only this sub-scenario is called

  • If I used this command npx cypress-tags run -e TAGS=@formVE, myEnv=value it's not ok, all features are called but without test.

  • If I used this command npx cypress-tags run -e TAGS=@formVE -e myEnv=value The feature "check forms" is called but with all sub-scenario

Behavior Expected with multi --env option

how is possible to launch one sub-scenario on the cypress-tag with feature containing sub-scenario and personal environment variables ?

@jdvegmond
Copy link

I have the same problem. I can use only tags, and then all (required) tests run fine. But if I use something besides 'TAGS' the behavior becomes unexpected. In my case none of the tests is run if I use something like --env "TAGS='@sat',env=acc"

@ojizero
Copy link
Contributor

ojizero commented Apr 20, 2020

This is similar to this issue #335, PR #352 should fix it (we have a similar version of this running internally and it works properly).

@lgandecki
Copy link
Collaborator

🎉 This issue has been resolved in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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