Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto committed Nov 2, 2023
1 parent 479d0a8 commit 4914977
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<example_name>`, 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`.

Expand All @@ -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]
Expand Down

0 comments on commit 4914977

Please sign in to comment.