Skip to content

Commit 16317e7

Browse files
committed
docs(test2): Cover baseline behavio differences
1 parent df8b78f commit 16317e7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/libtest2/src/lib.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@
2727
//! fn main() {
2828
//! }
2929
//! ```
30+
//!
31+
//! # Known limitations and differences to the official test harness
32+
//!
33+
//! `libtest2` aims to be fully compatible with stable, non-deprecated parts of `libtest`
34+
//! but there are differences for now.
35+
//!
36+
//! Some of the notable differences:
37+
//!
38+
//! - Output capture and `--no-capture`: simply not supported. The official
39+
//! `libtest` uses internal `std` functions to temporarily redirect output.
40+
//! `libtest` cannot use those, see also [libtest2#12](https://github.com/assert-rs/libtest2/issues/12)
41+
//! - `--format=json` (unstable): our schema is part of an experiment to see what should be
42+
//! stabilized for `libtest`, see also [libtest2#42](https://github.com/assert-rs/libtest2/issues/42)
3043
3144
#![cfg_attr(docsrs, feature(doc_cfg))]
3245
//#![warn(clippy::print_stderr)]

0 commit comments

Comments
 (0)