aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-test-harness/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart-test-harness/src/lib.rs')
-rw-r--r--crates/mozart-test-harness/src/lib.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/crates/mozart-test-harness/src/lib.rs b/crates/mozart-test-harness/src/lib.rs
new file mode 100644
index 0000000..f8fa2b3
--- /dev/null
+++ b/crates/mozart-test-harness/src/lib.rs
@@ -0,0 +1,12 @@
+//! Harness for Composer's `.test` integration fixture format.
+//!
+//! See `composer/tests/Composer/Test/Fixtures/installer/SAMPLE` and
+//! `composer/tests/Composer/Test/InstallerTest.php` for the reference
+//! implementation. This crate provides the parser and a binary-invoking
+//! runner; actual `.test` fixtures and tests live elsewhere.
+
+mod parser;
+mod runner;
+
+pub use parser::{ParsedTest, parse_test_file, parse_test_str};
+pub use runner::{RunResult, run_test};