-
Notifications
You must be signed in to change notification settings - Fork 99
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
add option to configure JGiven by a simple properties file #271
Comments
@janschaefer what would you like to configure ? |
@janschaefer is this still an issue? Because I don't know what you possibly would want to configure either? |
For example, the report directory where the JSONs are generated when running a JGiven test (jgiven.report.dir). For other potential configuration values see |
👍 |
Hi @ninj thanks for your input. Comments like this help me figure out which of the issues are important. I received a couple of such request in recent times, hence I need to prioritize them. As such some patience on your side will be appreciated :) |
I created an initial implementation for this to help kick things off. |
Hi, sorry I've not been in touch for a while! Just had an interesting thought - what should happen if the maven or gradle plugins are configured differently than the config file? At the moment there isn't any warning/error, but perhaps a warning could be emitted when the plugin runs? Would be helpful in avoiding support issues where users encounter unexpected behaviour (but did configure the behaviour in the first place.) edit: I guess the same conflict is there with the plugins and system property config too. |
Hi, excellent question, and one I've been pondering for a while as well. In the end, I opted to just keep the behavior as is, because, as you said, the same problem, that you may have deactivated JGiven via system properties, while requesting a report via the plugins, already existed. As you may see in PR #679, I've added a note to the user guide to help prevent that surprise. However, I am quite fond of having a warning in the plugins that test for deactivation. I hope I can get this done & tested in a reasonable amount of time :) |
there should be a way to configure JGiven by just providing a single
jgiven.properties
file.The text was updated successfully, but these errors were encountered: