Skip to content

Commit e6b8f19

Browse files
committed
makefile
1 parent 563c7ee commit e6b8f19

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

Makefile

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# This Makefile provides a leveled system for testing and watching a Rust project.
32
#
43

@@ -130,7 +129,7 @@ cwa:
130129
ctest1:
131130
@clear
132131
@echo "Running Test Level 1: Primary test suite..."
133-
@RUSTFLAGS="-D warnings" cargo nextest run $(PKG_FLAGS)
132+
@RUSTFLAGS="-D warnings" cargo nextest run --all-features $(PKG_FLAGS)
134133

135134
# Test Level 2: Primary + Documentation tests.
136135
#
@@ -139,8 +138,8 @@ ctest1:
139138
ctest2:
140139
@clear
141140
@echo "Running Test Level 2: Primary + Doc tests..."
142-
@RUSTFLAGS="-D warnings" cargo nextest run $(PKG_FLAGS) && \
143-
RUSTDOCFLAGS="-D warnings" cargo test --doc $(PKG_FLAGS)
141+
@RUSTFLAGS="-D warnings" cargo nextest run --all-features $(PKG_FLAGS) && \
142+
RUSTDOCFLAGS="-D warnings" cargo test --doc --all-features $(PKG_FLAGS)
144143

145144
# Test Level 3: Primary + Doc + Linter.
146145
#
@@ -149,8 +148,8 @@ ctest2:
149148
ctest3:
150149
@clear
151150
@echo "Running Test Level 3: All standard checks..."
152-
@RUSTFLAGS="-D warnings" cargo nextest run $(PKG_FLAGS) && \
153-
RUSTDOCFLAGS="-D warnings" cargo test --doc $(PKG_FLAGS) && \
151+
@RUSTFLAGS="-D warnings" cargo nextest run --all-features $(PKG_FLAGS) && \
152+
RUSTDOCFLAGS="-D warnings" cargo test --doc --all-features $(PKG_FLAGS) && \
154153
cargo clippy --all-targets --all-features $(PKG_FLAGS) -- -D warnings
155154

156155
# Test Level 4: All standard + Heavy testing (deps, audit).
@@ -160,11 +159,11 @@ ctest3:
160159
ctest4:
161160
@clear
162161
@echo "Running Test Level 4: All checks + Heavy testing..."
163-
@RUSTFLAGS="-D warnings" cargo nextest run $(PKG_FLAGS) && \
164-
RUSTDOCFLAGS="-D warnings" cargo test --doc $(PKG_FLAGS) && \
162+
@RUSTFLAGS="-D warnings" cargo nextest run --all-features $(PKG_FLAGS) && \
163+
RUSTDOCFLAGS="-D warnings" cargo test --doc --all-features $(PKG_FLAGS) && \
165164
cargo clippy --all-targets --all-features $(PKG_FLAGS) -- -D warnings && \
166-
cargo +nightly udeps --all-targets $(PKG_FLAGS) && \
167-
cargo +nightly audit $(PKG_FLAGS)
165+
cargo +nightly udeps --all-targets --all-features $(PKG_FLAGS) && \
166+
cargo +nightly audit --all-features $(PKG_FLAGS)
168167

169168
# Test Level 5: Full heavy testing with mutation tests.
170169
#
@@ -173,12 +172,12 @@ ctest4:
173172
ctest5:
174173
@clear
175174
@echo "Running Test Level 5: Full heavy testing with mutations..."
176-
@RUSTFLAGS="-D warnings" cargo nextest run $(PKG_FLAGS) && \
177-
RUSTDOCFLAGS="-D warnings" cargo test --doc $(PKG_FLAGS) && \
175+
@RUSTFLAGS="-D warnings" cargo nextest run --all-features $(PKG_FLAGS) && \
176+
RUSTDOCFLAGS="-D warnings" cargo test --doc --all-features $(PKG_FLAGS) && \
178177
cargo clippy --all-targets --all-features $(PKG_FLAGS) -- -D warnings && \
179178
willbe .test dry:0 && \
180-
cargo +nightly udeps --all-targets $(PKG_FLAGS) && \
181-
cargo +nightly audit $(PKG_FLAGS)
179+
cargo +nightly udeps --all-targets --all-features $(PKG_FLAGS) && \
180+
cargo +nightly audit --all-features $(PKG_FLAGS)
182181

183182
#
184183
# === Watch Commands ===
@@ -190,36 +189,36 @@ ctest5:
190189
# make wtest1 [crate=name]
191190
wtest1:
192191
@echo "Watching Level 1: Primary tests..."
193-
@cargo watch -c -x "nextest run $(PKG_FLAGS)"
192+
@cargo watch -c -x "nextest run --all-features $(PKG_FLAGS)"
194193

195194
# Watch Level 2: Primary + Doc tests.
196195
#
197196
# Usage :
198197
# make wtest2 [crate=name]
199198
wtest2:
200199
@echo "Watching Level 2: Primary + Doc tests..."
201-
@cargo watch -c -x "nextest run $(PKG_FLAGS)" -x "test --doc $(PKG_FLAGS)"
200+
@cargo watch -c -x "nextest run --all-features $(PKG_FLAGS)" -x "test --doc --all-features $(PKG_FLAGS)"
202201

203202
# Watch Level 3: Primary + Doc + Linter.
204203
#
205204
# Usage :
206205
# make wtest3 [crate=name]
207206
wtest3:
208207
@echo "Watching Level 3: All standard checks..."
209-
@cargo watch -c -x "nextest run $(PKG_FLAGS)" -x "test --doc $(PKG_FLAGS)" -x "clippy --all-targets --all-features $(PKG_FLAGS) -- -D warnings"
208+
@cargo watch -c -x "nextest run --all-features $(PKG_FLAGS)" -x "test --doc --all-features $(PKG_FLAGS)" -x "clippy --all-targets --all-features $(PKG_FLAGS) -- -D warnings"
210209

211210
# Watch Level 4: All standard + Heavy testing.
212211
#
213212
# Usage :
214213
# make wtest4 [crate=name]
215214
wtest4:
216215
@echo "Watching Level 4: All checks + Heavy testing..."
217-
@cargo watch -c --shell "RUSTFLAGS=\"-D warnings\" cargo nextest run $(PKG_FLAGS) && RUSTDOCFLAGS=\"-D warnings\" cargo test --doc $(PKG_FLAGS) && cargo clippy --all-targets --all-features $(PKG_FLAGS) -- -D warnings && cargo +nightly udeps --all-targets $(PKG_FLAGS) && cargo +nightly audit $(PKG_FLAGS)"
216+
@cargo watch -c --shell "RUSTFLAGS=\"-D warnings\" cargo nextest run --all-features $(PKG_FLAGS) && RUSTDOCFLAGS=\"-D warnings\" cargo test --doc --all-features $(PKG_FLAGS) && cargo clippy --all-targets --all-features $(PKG_FLAGS) -- -D warnings && cargo +nightly udeps --all-targets --all-features $(PKG_FLAGS) && cargo +nightly audit --all-features $(PKG_FLAGS)"
218217

219218
# Watch Level 5: Full heavy testing with mutations.
220219
#
221220
# Usage :
222221
# make wtest5 [crate=name]
223222
wtest5:
224223
@echo "Watching Level 5: Full heavy testing..."
225-
@cargo watch -c --shell "RUSTFLAGS=\"-D warnings\" cargo nextest run $(PKG_FLAGS) && RUSTDOCFLAGS=\"-D warnings\" cargo test --doc $(PKG_FLAGS) && cargo clippy --all-targets --all-features $(PKG_FLAGS) -- -D warnings && willbe .test dry:0 && cargo +nightly udeps --all-targets $(PKG_FLAGS) && cargo +nightly audit $(PKG_FLAGS)"
224+
@cargo watch -c --shell "RUSTFLAGS=\"-D warnings\" cargo nextest run --all-features $(PKG_FLAGS) && RUSTDOCFLAGS=\"-D warnings\" cargo test --doc --all-features $(PKG_FLAGS) && cargo clippy --all-targets --all-features $(PKG_FLAGS) -- -D warnings && willbe .test dry:0 && cargo +nightly udeps --all-targets --all-features $(PKG_FLAGS) && cargo +nightly audit --all-features $(PKG_FLAGS)"

0 commit comments

Comments
 (0)