From a3334ee267d3e905646bdb49c2edc8774ac8d966 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 19 Jul 2026 14:57:17 +0900 Subject: fix(test-harness): set COMPOSER_TESTS_ARE_RUNNING so interactive tests actually run Without this, Application::do_run force-disabled interactivity whenever stdin wasn't a tty (as under cargo test), so ApplicationTester runs with set_inputs silently produced non-interactive default output instead of consuming the answers, masking real behavior as several stale #[ignore]s blaming already-implemented ProcessExecutor/Process todo!()s. Port composer/tests/bootstrap.php's env setup into a bootstrap() helper called from get_application_tester(), un-ignore the now-passing init/update command tests, and update init_command_test's expected schema-validation wording to match the jsonschema crate (already the accepted wording per 541a8b4f, not an unported gap). --- crates/shirabe/tests/application_test.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/shirabe/tests/application_test.rs') diff --git a/crates/shirabe/tests/application_test.rs b/crates/shirabe/tests/application_test.rs index 2bb2b68a..f4542964 100644 --- a/crates/shirabe/tests/application_test.rs +++ b/crates/shirabe/tests/application_test.rs @@ -5,6 +5,8 @@ // Symfony command-registry model), or a runtime define() of COMPOSER_DEV_WARNING_TIME, // remain unportable. +#[path = "common/bootstrap.rs"] +mod bootstrap; #[path = "common/test_case.rs"] mod test_case; -- cgit v1.3.1