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

Corrected parsing of passed environment variables for GLOB and TAGS #352

Merged
merged 3 commits into from
Jun 1, 2020

Conversation

ojizero
Copy link
Contributor

@ojizero ojizero commented Mar 29, 2020

This sets it to respect how Cypress expect and behaves with this flag allowing us to pass
environment varibles along side TAGS and GLOB and have all variables be properly passed to Cypress.

fixes #335
fixes #244

ojizero and others added 2 commits March 29, 2020 15:54
…for GLOB and TAGS

This sets it to respect how Cypress expect and behaves with this flag allowing us to pass
environment varibles along side TAGS and GLOB and have all variables be properly passed to Cypress.

fixes #335
@ojizero
Copy link
Contributor Author

ojizero commented Mar 29, 2020

The first comment I noticed after testing this in another script that I had missed to negate the condition xD actually includes is even better xD

I kept it with = as I intended for this to be more generic when I first built the function, as it we use it in another script internally that does additional behaviors, but yeah that portion is unneeded for this case 👍

About the comment I usually like to document why certain behavior is done, especially that Cypress' behavior caught me off guard honestly, as normally array like options are taking by giving the parameter multiple times, so I wanted to document why it done this way.

Thanks for your comments :D

@ojizero
Copy link
Contributor Author

ojizero commented Mar 30, 2020

@dallevon I prefer to refrain from adding new features as this just intends to fix the bug in the behavior of this package 😅 except if the maintainers of the project want this to also be introduced I'd rather it just be the bug fix 😃

@dallevon
Copy link

Understood. No problem. Thank you.

@lgandecki lgandecki merged commit 8a5f032 into badeball:master Jun 1, 2020
@lgandecki
Copy link
Collaborator

Looks good. Thanks for the work and sorry for the late merge!

@lgandecki
Copy link
Collaborator

🎉 This PR is included 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
Development

Successfully merging this pull request may close these issues.

Only can pass GLOB or TAGS in --env Tags not working as expected with multi --env option
3 participants