✅ Versiona configuración de pruebas en test.toml
This commit is contained in:
parent
24ccb23048
commit
779e98eeb0
2 changed files with 11 additions and 1 deletions
9
config/test.toml
Normal file
9
config/test.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[app]
|
||||
name = "Testing"
|
||||
|
||||
[server]
|
||||
bind_port = 9000
|
||||
|
||||
[test]
|
||||
string_value = "Modified value"
|
||||
float_value = 8.7654
|
||||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue