LukasKalbertodt/libtest-mimic

A small test framework to write your own test harness that looks and behaves like the built-in test harness used by `rustc --test`

149

stars

177

commits

Rust

primary language

Mar 16, 2026

updated

docs.rs/libtest-mimic
harness
rust
test-framework
testing
Browse cluster: Testing frameworks across languages

README

libtest-mimic

CI status of master Crates.io Version docs.rs

Write your own test harness that looks and behaves like the built-in test harness (used by rustc --test)!

This is a simple and small testing framework that mimics the original libtest. That means: all output looks pretty much like cargo test and most CLI arguments are understood and used. With that plumbing work out of the way, your test runner can focus on the actual testing.

See the documentation or the examples/ folder for more information.


License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Contributors

LukasKalbertodt

145 commits

sunshowers

7 commits

Nadrieril

6 commits

tgross35

3 commits

LukasKalbertodt/libtest-mimic

A small test framework to write your own test harness that looks and behaves like the built-in test harness used by `rustc --test`

149

stars

177

commits

Rust

primary language

Mar 16, 2026

updated

docs.rs/libtest-mimic
harness
rust
test-framework
testing
Browse cluster: Testing frameworks across languages

README

libtest-mimic

CI status of master Crates.io Version docs.rs

Write your own test harness that looks and behaves like the built-in test harness (used by rustc --test)!

This is a simple and small testing framework that mimics the original libtest. That means: all output looks pretty much like cargo test and most CLI arguments are understood and used. With that plumbing work out of the way, your test runner can focus on the actual testing.

See the documentation or the examples/ folder for more information.


License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Contributors

LukasKalbertodt

145 commits

sunshowers

7 commits

Nadrieril

6 commits

tgross35

3 commits

Languages

Rust

100.0%