Skip to content

Commit ce77c52

Browse files
0xNeshiLeoPatOZ
andauthored
build: rely on explicit test-utils feature setting (#137)
Co-authored-by: Leo <[email protected]>
1 parent b18762f commit ce77c52

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ cargo build --locked --all-targets --all-features
6060
Run the test suite (we recommend nextest):
6161

6262
```bash
63-
cargo nextest run
63+
cargo nextest run --features test-utils
6464
# or
65-
cargo test
65+
cargo test --features test-utils
6666
```
6767

6868
Run examples:
@@ -123,7 +123,7 @@ cargo clippy --all-targets --all-features -- -D warnings -D clippy::pedantic
123123
typos
124124
125125
# Tests (prefer nextest)
126-
cargo nextest run
126+
cargo nextest run --features test-utils
127127
```
128128

129129
---
@@ -160,7 +160,7 @@ Key implementation details, trade-offs, and alternatives considered.
160160
- [ ] `cargo +nightly fmt --all --check`
161161
- [ ] `cargo clippy --all-targets --all-features -- -D warnings -D clippy::pedantic`
162162
- [ ] `typos`
163-
- [ ] Tests pass (`cargo nextest run`)
163+
- [ ] Tests pass (`cargo nextest run --features test-utils`)
164164
- [ ] Docs/README/examples updated (if applicable)
165165
```
166166

Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,3 @@ workspace = true
7272

7373
[features]
7474
test-utils = []
75-
76-
[[test]]
77-
# see tests/mod.rs
78-
name = "mod"
79-
required-features = ["test-utils"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,6 @@ Both examples spin up a local `anvil` instance, deploy a demo counter contract,
262262
Integration tests cover all modes:
263263

264264
```bash
265-
cargo nextest run
265+
cargo nextest run --features test-utils
266266
```
267267

0 commit comments

Comments
 (0)