Commit 493eb34 1 parent c2ff762 commit 493eb34 Copy full SHA for 493eb34
File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,9 @@ default is `true` for all targets.
248
248
If set to ` false ` , then you are responsible for defining a ` main() ` function
249
249
to run tests and benchmarks.
250
250
251
+ Tests have the [ ` cfg(test) ` conditional expression] [ cfg-test ] enabled whether
252
+ or not the harness is enabled.
253
+
251
254
#### The ` edition ` field
252
255
253
256
The ` edition ` field defines the [ Rust edition] the target will use. If not
@@ -353,6 +356,7 @@ autobins = false
353
356
[ `cargo install` ] : ../commands/cargo-install.md
354
357
[ `cargo run` ] : ../commands/cargo-run.md
355
358
[ `cargo test` ] : ../commands/cargo-test.md
359
+ [ cfg-test ] : ../../reference/conditional-compilation.html#test
356
360
[ crate types ] : ../../reference/linkage.html
357
361
[ crates.io ] : https://crates.io/
358
362
[ customized ] : #configuring-a-target
You can’t perform that action at this time.
0 commit comments