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

Set Guice inject source from command line #881

Closed
lcintrat opened this issue Jul 11, 2015 · 4 comments
Closed

Set Guice inject source from command line #881

lcintrat opened this issue Jul 11, 2015 · 4 comments

Comments

@lcintrat
Copy link

Hi,

Setting guice.injector-sourceproperty from the command line would be very handy instead of specifying it in file cucumber-guice.properties

Scenario:
I have a test set for several configurations involving different injector sources. For now, on the CI builder I have to overwrite the guice properties for each configuration. And the issue also exists for developers: they have to modify this property file (in Eclipse for example, with command line support, a developer might create a different run configuration per test configuration without modifying any file)

Best regards,
Ludovic

@lcintrat
Copy link
Author

Thank you very much !
I will check this as soon as possible.

@aslakhellesoy
Copy link
Contributor

You're welcome. It's already available as a snapshot: https://cucumber.io/docs/reference/jvm#snapshot-releases

@kodstark
Copy link

kodstark commented Nov 4, 2016

System property works for gradle/maven but I would like to have testcases working with different injectors in vanilla IDE. Here I posted my solution to define InjectorSource per individual testcase - http://stackoverflow.com/questions/35315963/cucumber-with-guice-multiple-guice-injector/40429150#40429150

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants