You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support outer doc comments for naming matrix tests
Adds support for using outer doc comments (`///`) instead of
auto-generated tests names for parameterized matrix tests.
e.g. legacy compact syntax:
```rust
expected => [
/// len_forty_two
42,
/// len_four_alt
2*3-2,
],
)]
fn test(expected: usize) { ... }
```
e.g. attribute syntax:
```rust
fn test(
#[values(
/// len_forty_two
42,
/// len_four
2*3-2,
)]
expected: usize,
) { ... }
```
The generated test names will be `test_1_len_forty_two` and
`test_2_len_four`.
This implementation also changes the internal `sanitize_ident` function to
allow sanitizing whitespaces as `_`.
Fixes <#320>
Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
0 commit comments