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

Support configuration outside of suites #585

Open
Airblader opened this issue Sep 2, 2022 · 2 comments
Open

Support configuration outside of suites #585

Airblader opened this issue Sep 2, 2022 · 2 comments

Comments

@Airblader
Copy link

#273 implemented a feature to make some things configurable, which is great. The problem is that we need to do this in every test suite such that it works regardless of which one we execute (during development). It would be great if this could be done in a more global way; some brainstorming:

  1. Configuration through environment variables (probably not the greatest)
  2. Configuration through a config file
  3. Custom template for the Ginkgo CLI (<- not preferred since I personally don't use it to create new suites anyway).
  4. ...?
@onsi
Copy link
Owner

onsi commented Sep 2, 2022

I think config files will be the future for this sort of stuff in both ginkgo and gomega. But it's not a super high priority at the moment :/

@Airblader
Copy link
Author

Totally understandable, just wanted to raise it for visibility. Thanks for the quick response!

Our solution for now is a shared setup function that we call from all suite definitions. It's not ideal since it relies on convention, but how the string comparisons are formatted is also not exactly a life-or-death thing.

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

No branches or pull requests

2 participants