Skip to content

Commit e24a6f7

Browse files
authored
Merge branch 'main' into retry-logic
2 parents 6241e83 + e176d50 commit e24a6f7

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ jobs:
5252
path: results.sarif
5353
retention-days: 5
5454
- name: Upload SARIF to GitHub Code Scanning
55-
uses: github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v3.29.5
55+
uses: github/codeql-action/upload-sarif@16140ae1a102900babc80a33c44059580f687047 # v3.29.5
5656
with:
5757
sarif_file: results.sarif

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Install cargo-nextest
4747
if: steps.cache-cargo-nextest.outputs.cache-hit != 'true'
48-
uses: taiki-e/install-action@e7ef886cf8f69c25ecef6bbc2858a42e273496ec # v2.62.28
48+
uses: taiki-e/install-action@e43a5023a747770bfcb71ae048541a681714b951 # v2.62.33
4949
with:
5050
tool: cargo-nextest
5151

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 --features test-utils
63+
cargo nextest run
6464
# or
65-
cargo test --features test-utils
65+
cargo test
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 --features test-utils
126+
cargo nextest run
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 --features test-utils`)
163+
- [ ] Tests pass (`cargo nextest run`)
164164
- [ ] Docs/README/examples updated (if applicable)
165165
```
166166

Cargo.toml

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

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

README.md

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

226226
```bash
227-
cargo nextest run --features test-utils
227+
cargo nextest run
228228
```
229229

tests/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This test module triggers the `test-utils` feature when running
2+
// `cargo test`. Without it, you'd need to manually specify `--features test-utils`
3+
// every time.
14
mod common;
25
mod historic_mode;
36
mod historic_to_live;

0 commit comments

Comments
 (0)