Skip to content

Commit 23e0c85

Browse files
committed
docs: Document should_panic macro deviation
1 parent 2d7b1cc commit 23e0c85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/libtest2/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
//! - `#[test]` does not support all `Termination` types as return values,
3939
//! only what [`IntoRunResult`] supports.
4040
//! - `#[ignore]` must come after the `#[test]` macro
41+
//! - `#[should_ignore]` must come after the `#[test]` macro.
42+
//! The error output if the test fails to panic is also different from `libtest`.
4143
//! - Output capture and `--no-capture`: simply not supported. The official
4244
//! `libtest` uses internal `std` functions to temporarily redirect output.
4345
//! `libtest` cannot use those, see also [libtest2#12](https://github.com/assert-rs/libtest2/issues/12)

0 commit comments

Comments
 (0)