From 49149777250375e73620d5542a2ec24dd53c838b Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Fri, 3 Nov 2023 00:08:13 +0800 Subject: [PATCH] update readme --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index c5e1977..2e15487 100644 --- a/README.md +++ b/README.md @@ -271,7 +271,7 @@ Require `executable` feature, if default features are disabled. ``` ## Runtime -We can let an example to do thing that cargo test runner do, and ignore testcase in runtime. +We can let an example to do thing that cargo test runner do, `cargo run --example=`, and ignore testcase in runtime. The testcase of in the example will not in `#[cfg(test)]` or `#[test]` anymore, and use `#[test_with::runtime_*]`, the test runner will treat it as the test in Rust and also provide the same summary as `cargo test`. @@ -283,7 +283,6 @@ libtest-with = { version = "0.6.1-4", features = ["net", "resource", "user", "ex Create an example with the following runtime macros (`test_with::runner!`, `#[test_with::module]`, `#[test_with::runtime_env()]`). ```rust - test_with::runner!(module_name); #[test_with::module]