When running kaocha.repl/run-all, we can specify a configuration that will override the default configuration found in the test.edn file. In theory, this means that the entire configuration could be specified this way... except that Kaocha will raise a warning if test.edn is missing, even if it given a complete configuration via an argument.
For example:
(kaocha.repl/run (kaocha.config/default-config))
Produces:
WARNING: Did not load a configuration file and using the defaults.
This is fine for experimenting, but for long-term use, we recommend creating a configuration file to avoid changes in behavior between releases.
To create a configuration file using the current defaults and configuration file location, create a file named tests.edn that contains '#kaocha/v1 {}'.
My suggestion would be to allow an option like :kaocha/disable-missing-config-file-warning? that, when set to true, suppresses the warning message. This would ensure that people don't accidentally disable the warning, but can do so if they really want to.
If this is okay, I can submit a pull request that implements this change.
When running
kaocha.repl/run-all, we can specify a configuration that will override the default configuration found in thetest.ednfile. In theory, this means that the entire configuration could be specified this way... except that Kaocha will raise a warning iftest.ednis missing, even if it given a complete configuration via an argument.For example:
Produces:
My suggestion would be to allow an option like
:kaocha/disable-missing-config-file-warning?that, when set totrue, suppresses the warning message. This would ensure that people don't accidentally disable the warning, but can do so if they really want to.If this is okay, I can submit a pull request that implements this change.