aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/repository
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-19 14:57:17 +0900
committernsfisis <nsfisis@gmail.com>2026-07-19 14:57:17 +0900
commita3334ee267d3e905646bdb49c2edc8774ac8d966 (patch)
treecd6a805445ea330f706dc96f8ed1b5a249d7661b /crates/shirabe/tests/repository
parent15c54ec439d0e718ae4aa81cc96c66b69ddfa4d1 (diff)
downloadphp-shirabe-a3334ee267d3e905646bdb49c2edc8774ac8d966.tar.gz
php-shirabe-a3334ee267d3e905646bdb49c2edc8774ac8d966.tar.zst
php-shirabe-a3334ee267d3e905646bdb49c2edc8774ac8d966.zip
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).
Diffstat (limited to 'crates/shirabe/tests/repository')
-rw-r--r--crates/shirabe/tests/repository/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/shirabe/tests/repository/main.rs b/crates/shirabe/tests/repository/main.rs
index f5ecbc63..e86772e7 100644
--- a/crates/shirabe/tests/repository/main.rs
+++ b/crates/shirabe/tests/repository/main.rs
@@ -1,3 +1,5 @@
+#[path = "../common/bootstrap.rs"]
+mod bootstrap;
#[path = "../common/config_stub.rs"]
mod config_stub;
#[path = "../common/http_downloader_mock.rs"]