https://github.com/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`
https://github.com/lukaskalbertodt/libtest-mimic
harness rust test-framework testing
Last synced: about 1 year ago
JSON representation
A small test framework to write your own test harness that looks and behaves like the built-in test harness used by `rustc --test`
- Host: GitHub
- URL: https://github.com/lukaskalbertodt/libtest-mimic
- Owner: LukasKalbertodt
- License: apache-2.0
- Created: 2018-07-22T08:09:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-05T11:57:01.000Z (over 1 year ago)
- Last Synced: 2025-05-12T19:13:02.353Z (about 1 year ago)
- Topics: harness, rust, test-framework, testing
- Language: Rust
- Homepage: https://docs.rs/libtest-mimic
- Size: 463 KB
- Stars: 115
- Watchers: 4
- Forks: 32
- Open Issues: 11
-
Metadata Files:
- Readme: .github/readme.png
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# libtest-mimic
[
](https://github.com/LukasKalbertodt/libtest-mimic/actions?query=workflow%3ACI+branch%3Amaster)
[
](https://crates.io/crates/libtest-mimic)
[
](https://docs.rs/libtest-mimic)
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**](https://docs.rs/libtest-mimic) or [the `examples/` folder](/examples) for more information.
---
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
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.