NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1247 most downloaded on crates.io
Provides #[test_case(...)] procedural macro attribute for generating parametrized test cases easily
Latest stable
3.4.1
Last release 20 days ago
01 Nov 2026
Ships unpredictably
gaps range from 6 weeks to 2.9 years
Nearly every release is documented
notes for 11 of 11 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
11 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
test_case no longer triggers clippy::redundant_test_prefix lint
Adds test case number to automatically distinguish test cases with the same generated name (#151) Instead of having a conflict in example like this:
#[test_case(42)]
#[test_case("42")]
fn cases_are_enumerated(value: impl std::fmt::Display) {
assert_eq!("42", &value.to_string())
}
It now generates prefix name for each test case. In all cases:
test cases_are_enumerated::test_case_1_42_expects ... ok
test cases_are_enumerated::test_case_2_42_expects ... ok
assert_eq!(result, expectation) instead of previous assert_eq!(expectation, result);Your coding agent can read these notes before it upgrades. Set up the MCP server →
Avoid emitting unnecessary error messages by test cases & remove proc-macro2-diagnostics dependency by @dtolnay in https://github.com/frondeus/test-ca
Full Changelog: https://github.com/frondeus/test-case/compare/v3.3.0...v3.3.1
Full Changelog: v3.3.0...v3.3.1
Fix test_matrix example that does not compile in README by @ollien in https://github.com/frondeus/test-case/pull/133
Full Changelog: https://github.com/frondeus/test-case/compare/v3.2.1...v3.3.0
Full Changelog: v3.2.1...v3.3.0
test-matrix macro (#132)proc-macro-error dependency & improve error messages (#136)Ensure that test-case targets latest core and macros subcrates.
syn dependencytest-case targets latest core and macros subcrates.Full Changelog: https://github.com/frondeus/test-case/compare/v3.2.0...v3.2.1
syn dependencytest-case targets latest core and macros subcrates.Full Changelog: v3.2.0...v3.2.1
syn dependency to 2.0test-case selects correct version of it's core and macros subcratesRetain allow attribute in test_case macro by @JohnPeel in https://github.com/frondeus/test-case/pull/127
Full Changelog: https://github.com/frondeus/test-case/compare/v3.1.0...v3.2.0
Full Changelog: v3.1.0...v3.2.0
test_matrix macro: generates test cases from Cartesian product of possible test function argument values (#128)allow attributes on test functions (#127)Set MSRV in Cargo.toml to 1.58.1 by @samueltardieu in https://github.com/frondeus/test-case/pull/116
Cargo.toml to 1.58.1 by @samueltardieu in https://github.com/frondeus/test-case/pull/116Full Changelog: https://github.com/frondeus/test-case/compare/v3.0.0...v3.1.0
Cargo.toml to 1.58.1 by @samueltardieu in #116Full Changelog: v3.0.0...v3.1.0
This crate provides the #[test_case] procedural macro attribute that generates multiple parametrized tests using one body with different input paramet
This crate provides the #[test_case] procedural macro attribute that generates multiple parametrized tests using one body with different input parameters.
A test is generated for each data set passed in the test_case attribute.
Under the hood, all test cases that share the same body are grouped into a mod, giving clear and readable test results.
test-case-core crate, allowing easier reuse in external crates. By @evfordeStarting with the 3.0 release, we are changing test-case MSRV policy. We no longer can maintain our goal of only bumping MSRV with major SemVer releases partly due to how fast rust landscape changes and partly to how the rest of the rust ecosystem prefers instead not to keep MSRV breakage treated as SemVer breakage, making stricter policies hard to maintain with limited resources we have. The current goal is to support up to 3 of the latest stable releases.
We hope that with this change, we'll be able to speed up test-case's maintenance processes and add more features in the coming months.
[IMPORTANT] Starting with 3.0 release we are changing test-case MSRV policy to support only 3 latest stable releases.
test-case-macros crate into test-case-core for easy reuse by external librariesUse fully qualified #[test] attribute path by @alanbriolat in https://github.com/frondeus/test-case/pull/105
Full Changelog: https://github.com/frondeus/test-case/compare/v2.2.1...v2.2.2
Full Changelog: v2.2.1...v2.2.2
test macro path to avoid conflicts in workspace (#105)Bugfix release - ensure test-case depends on correct version of test-case-macros Full Changelog: https://github.com/frondeus/test-case/compare/v2.2.0.
Bugfix release - ensure test-case depends on correct version of test-case-macros
Full Changelog: https://github.com/frondeus/test-case/compare/v2.2.0...v2.2.1
Bugfix release - ensure test-case depends on correct version of test-case-macros
Full Changelog: v2.2.0...v2.2.1
Refactoring: move test-case macro to separate subcrate by @luke-biel in https://github.com/frondeus/test-case/pull/96
match_regex to complex test-cases by @luke-biel in https://github.com/frondeus/test-case/pull/98Full Changelog: https://github.com/frondeus/test-case/compare/v2.0.2...v2.1.0
match_regex to complex test-cases by @luke-biel in #98Full Changelog: v2.0.2...v2.1.0
matches_regex complex test-case (requires with-regex feature) (#98)len, count and empty complex test-cases (#97)ignore on void fn (#100)One column per quarter.