Skip to content

Feature request: an option to disable config warning when running via the REPL #462

@weavejester

Description

@weavejester

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions