NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1415 most downloaded on crates.io
Provides core functionality for parsing #[test_case(...)] procedural macro attribute for generating parametrized test cases easily
Latest stable
3.4.1
Last release 21 days ago
01 Nov 2026
Ships unpredictably
gaps range from 6 weeks to 2.9 years
Nearly every release is documented
notes for 8 of 8 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
8 releases · first in 2023
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 #133
Full Changelog: v3.2.1...v3.3.0
Full Changelog: https://github.com/frondeus/test-case/compare/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: 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 #127
Full Changelog: v3.1.0...v3.2.0
Full Changelog: https://github.com/frondeus/test-case/compare/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 #116
Cargo.toml to 1.58.1 by @samueltardieu in #116Full Changelog: v3.0.0...v3.1.0
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
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 librariesOne column per quarter.