1212//! harness = false
1313//! ```
1414//!
15- //! And in `tests/mytest.rs` you would call [ `main!`], passing it each of your tests :
15+ //! And in `tests/mytest.rs` you would wrap `main` with [`#[main]`] :
1616//!
1717//! ```no_run
1818//! # use libtest2::RunError;
1919//! # use libtest2::RunResult;
2020//! # use libtest2::TestContext;
21+ //! #[libtest2::test]
2122//! fn check_toph(_context: &TestContext) -> RunResult {
2223//! Ok(())
2324//! }
2425//!
25- //! libtest2::main!(check_toph);
26+ //! #[libtest2::main]
27+ //! fn main() {
28+ //! }
2629//! ```
27- //!
2830
2931#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
3032//#![warn(clippy::print_stderr)]
@@ -35,15 +37,24 @@ mod macros;
3537
3638#[ doc( hidden) ]
3739pub mod _private {
38- pub use crate :: _main as main;
40+ pub use distributed_list:: push;
41+ pub use distributed_list:: DistributedList ;
42+ pub use libtest2_harness:: Case ;
43+ pub use libtest2_harness:: Source ;
44+ pub use libtest2_harness:: TestKind ;
45+
46+ pub use crate :: _main_parse as main_parse;
47+ pub use crate :: _test_parse as test_parse;
48+ pub use crate :: case:: DynCase ;
3949}
4050
41- pub use _private:: main;
4251pub use case:: main;
4352pub use case:: FnCase ;
4453pub use libtest2_harness:: RunError ;
4554pub use libtest2_harness:: RunResult ;
4655pub use libtest2_harness:: TestContext ;
56+ pub use libtest2_proc_macro:: main;
57+ pub use libtest2_proc_macro:: test;
4758
4859#[ doc = include_str ! ( "../README.md" ) ]
4960#[ cfg( doctest) ]
0 commit comments