Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Enable warn logging in tests for better diagnostics (#250)

Maximilian Roosd918813e8958
diff --git a/.config/nextest.toml b/.config/nextest.toml
index ccddb2764..1bc1b8d54 100644
--- a/.config/nextest.toml
+++ b/.config/nextest.toml
@@ -8,10 +8,3 @@ slow-timeout = { period = "60s", terminate-after = 1 }
[[profile.default.overrides]]
filter = 'test(/integration_tests::ci_status::test_list_full/)'
threads-required = 4
-
-# Windows has stricter file locking than macOS/Linux. The list tests run many parallel
-# git operations that can race for .git/config access, causing transient "Permission
-# denied" errors. Retry flaky list tests.
-[[profile.default.overrides]]
-filter = 'test(/integration_tests::list::/)'
-retries = { backoff = "exponential", count = 2, delay = "100ms" }
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index 5a6648c18..bafe981de 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -600,6 +600,8 @@ pub fn configure_cli_command(cmd: &mut Command) {
cmd.env("CLICOLOR_FORCE", "1");
cmd.env("SOURCE_DATE_EPOCH", TEST_EPOCH.to_string());
cmd.env("COLUMNS", "150");
+ // Enable warn-level logging so diagnostics show up in test failures
+ cmd.env("RUST_LOG", "warn");
// Pass through LLVM coverage profiling environment for subprocess coverage collection.
// When running under cargo-llvm-cov, spawned binaries need LLVM_PROFILE_FILE to record