From 779e98eeb01a1d5f9384f1fce125c20da958a573 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Mon, 12 Oct 2026 10:37:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Versiona=20configuraci=C3=B3n=20de?= =?UTF-8?q?=20pruebas=20en=20test.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/test.toml | 9 +++++++++ tests/config.rs | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 config/test.toml 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() {