libtest-mimic
Write your own test harness that looks and behaves like the built-in test harness used by `rustc --test`
0.8.2
29M downloads/mo
#1698 most downloaded on crates.io
LukasKalbertodt/libtest-mimic
What this package is like to depend on
Last release 5 months ago
16 Mar 2026
Release timing varies
gaps range from 3 weeks to 1.9 years
Nearly every release is documented
notes for 17 of 17 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
17 releases · first in 2018
1 release in the last 12 months
see the full history below
Release timeline
17 releases · Jul 2018 to Mar 2026Releases
latest 17-
0.8.216 Mar 2026 -
0.8.105 Oct 2024Release notes
Open source →- Fix bug when executing trials on fewer threads than trials (thanks @hanna-kruppe for catching this)
Release notes
Open source →- Fix bug when executing trial on fewer threads than trials (thanks @hanna-kruppe for catching this)
-
0.8.005 Oct 2024Release notes
Open source →- Breaking: bump MSRV to 1.65
- Remove
threadpooldependency, getting rid of memory leaks observed when running under valgrind (thanks @Felix-El) in #46 - Switch from
termcolortoanstreamto get rid of duplicate dependencies (thanks @hanna-kruppe) in #44 - Bump dev-dependency
fastrandto2(thanks @alexanderkjall) in #47 - Fix outdated docs
Release notes
Open source →- Breaking: bump MSRV to 1.65
- Remove
threadpooldependency, getting rid of memory leaks observed when running under valgrind (thanks @Felix-El) in #46 - Switch from
termcolortoanstreamto get rid of duplicate dependencies (thanks @hanna-kruppe) in #44 - Bump dev-dependency
fastrandto2(thanks @alexanderkjall) in #47 - Fix outdated docs
-
0.7.310 May 2024Release notes
Open source →- Default to single-threaded tests for WebAssembly (thanks @alexcrichton) in #41
Release notes
Open source →- Default to single-threaded tests for WebAssembly (thanks @alexcrichton) in #41
-
0.7.209 Apr 2024 -
0.7.109 Apr 2024Release notes
Open source →- Add
Conclusion::exit_codeand note about destructors/cleanup to docs ofexitandexit_if_failede938e537e
Release notes
Open source →- Add
Conclusion::exit_codeand note about destructors/cleanup to docs ofexitandexit_if_failede938e537e
- Add
-
0.7.014 Jan 2024Release notes
Open source →- Also check
kindwhen filtering tests (thanks @sunshowers) in #30- This is potentially breaking as additional or fewer tests might be executed in some situations.
- Add JSON format output (thanks @PaulWagener and @t-moe) in #35
- Add no-op flags to add CLI compatibility for IntellJ Rust (thanks @Dinnerbone and @t-moe) #28 /
70cdc55
Release notes
Open source →- Also check
kindwhen filtering tests (thanks @sunshowers) in #30- This is potentially breaking as additional or fewer tests might be executed in some situations.
- Add JSON format output (thanks @PaulWagener and @t-moe) in #35
- Add no-op flags to add CLI compatibility for IntellJ Rust (thanks @Dinnerbone and @t-moe) #28 /
70cdc55
- Also check
-
0.6.120 Jun 2023Release notes
Open source →Fixed
- Actually spawn as many threads as specified by
--test-threads(thanks @hgzimmerman) in #32. - Fix & improve docs
- Fix badge in README
Changed
- Deemphasize MSRV by removing check and note from README in #24.
Release notes
Open source →Fixed
- Actually spawn as many threads as specified by
--test-threads(thanks @hgzimmerman) in #32. - Fix & improve docs
- Fix badge in README
Changed
- Deemphasize MSRV by removing check and note from README in #24.
- Actually spawn as many threads as specified by
-
0.6.005 Nov 2022Release notes
Open source →Changed
- Breaking: Updated
clapto version 4 (thanks @msrd0) - Breaking: Bump MSRV to 1.60 (due to the clap update)
Removed
- Breaking: Remove
FromStrimpls forargs::{ColorSetting, FormatSetting}(useclap::ValueEnuminstead).
Release notes
Open source →Changed
- Breaking: Updated
clapto version 4 (thanks @msrd0) - Breaking: Bump MSRV to 1.60 (due to the clap update)
Removed
- Breaking: Remove
FromStrimpls forargs::{ColorSetting, FormatSetting}(useclap::ValueEnuminstead).
- Breaking: Updated
-
0.5.214 Aug 2022Release notes
Open source →Release notes
Open source → -
0.5.113 Aug 2022 -
0.5.013 Aug 2022Release notes
Open source →Most parts of this library have been rewritten and the API has changed a lot. You might be better of just reading the new docs instead of this change log. I do think the new API is better in many regards. Apart from an improved API, changes that motivated the rewrite are marked with ⭐.
Changed
- Breaking: bump MSRV to 1.58
- Breaking: Rename
TesttoTrial - Breaking: Rename
run_teststorun - ⭐ Breaking: Make every
Trialhave a runner function instead ofdata+ a global runner function. Thus, the third parameter ofrunis no more. I think this model is more intuitive. - Breaking: Add
Trial::{test, bench}constructor functions, use builder pattern, and make fields private. - Breaking: rename
Args::num_threadstotest_threads - Breaking: make fields of
Conclusionpublic and remove getter methods - Breaking: remove
RunnerEvent. This should not have been public. - ⭐ Tests are now run in main thread when
--test-threads=1is specified - ⭐ Reduce number of indirect dependencies considerably
- Fix
rust-versionfield inCargo.toml(thanks @hellow554) - Fix
--ignoredbehavior - Fix some CLI error messages
Added
- ⭐Panics in test runners are caught and treated as failure
- ⭐ Lots of integration tests (should make any future development of this library way easier)
- Add
must_usemessage forConclusion - Print total execution time at the end of the run
- Allow benchmarks to run in test mode
--include-ignored
Removed
- Breaking: remove unsupported CLI options. They were ignored anyway, but the CLI would accept them.
-
0.4.107 Jun 2022Release notes
Open source →- Add
rust = "1.56"toCargo.toml, stating the existing MSRV. - Update
crossbeam-channelto deduplicate some indirect dependencies.
- Add
-
0.4.013 May 2022Release notes
Open source →- Breaking: Update to Rust 2021, bumping MSRV to 1.56
- Fix
--list --ignoredbehavior
-
0.3.028 Jun 2020Release notes
Open source →Added
- Add support for running tests in parallel #4
- Add
Arguments::from_iter#5
-
0.2.002 Oct 2019Release notes
Open source →Changed
- Upgrade dependencies #3
- Flush stdout after printing test name 4a36b3318b69df233b0db7d1af3caf276e6bb070
Fixed
- Fix overflow bug when calculating number of passed tests 264fe6f8a986ab0c02f4a85e64e42ee17596923c
-
0.1.023 Jul 2018