1-
21# This Makefile provides a leveled system for testing and watching a Rust project.
32#
43
130129ctest1 :
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:
139138ctest2 :
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:
149148ctest3 :
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:
160159ctest4 :
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:
173172ctest5 :
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]
191190wtest1 :
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]
199198wtest2 :
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]
207206wtest3 :
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]
215214wtest4 :
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]
223222wtest5 :
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