From 8fe3390d064303b86133a1d2983144a4818a7121 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 23 Jun 2026 03:49:00 +0900 Subject: test(command): port InitCommandTest Port the pure-method cases (parse/namespace/formatAuthors/git/vendor-ignore) and build the ApplicationTester / initTempComposer harness the run cases need. Supporting production changes: - carry the streamable input stream as PhpResource (not PhpMixed) and add InputInterface::as_streamable so QuestionHelper reads the injected stream - add StreamOutput/ConsoleOutput __set_stream test helpers and ApplicationHandle::set_catch_exceptions for the tester - implement the interact() author validator via parse_author_string Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/command/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/shirabe/tests/command/main.rs') diff --git a/crates/shirabe/tests/command/main.rs b/crates/shirabe/tests/command/main.rs index 287fb27..78345fe 100644 --- a/crates/shirabe/tests/command/main.rs +++ b/crates/shirabe/tests/command/main.rs @@ -1,3 +1,6 @@ +#[path = "../common/test_case.rs"] +mod test_case; + mod about_command_test; mod archive_command_test; mod audit_command_test; -- cgit v1.3.1