diff --git a/config/test.toml b/config/test.toml new file mode 100644 index 00000000..0962b5a0 --- /dev/null +++ b/config/test.toml @@ -0,0 +1,9 @@ +[app] +name = "Testing" + +[server] +bind_port = 9000 + +[test] +string_value = "Modified value" +float_value = 8.7654 diff --git a/tests/config.rs b/tests/config.rs index 247636db..38ebb01b 100644 --- a/tests/config.rs +++ b/tests/config.rs @@ -22,7 +22,8 @@ pub struct Test { // The `testing` *feature* (active with `cargo ts` / `cargo tw`) fixes the "test" mode at compile // time inside `config::CONFIG_VALUES`, so that `global::SETTINGS` and any local `include_config!` -// automatically load the "test" mode configuration. +// automatically load the "test" mode configuration from `config/test.toml` (versioned, unlike the +// `local.*.toml` files). #[pagetop::test] async fn check_global_config() {