An open API service indexing awesome lists of open source software.

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`

Awesome Lists containing this project

README

          

# libtest-mimic

[CI status of master](https://github.com/LukasKalbertodt/libtest-mimic/actions?query=workflow%3ACI+branch%3Amaster)
[Crates.io Version](https://crates.io/crates/libtest-mimic)
[docs.rs](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.