Skip to content

Commit b996a7e

Browse files
author
Freyskeyd
committed
Fix doc cfg(test) and tests directory
Signed-off-by: Freyskeyd <[email protected]>
1 parent 9c0e373 commit b996a7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/book/testing.md

+4
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,10 @@ be imported in every test with `mod common;`
499499
That's all there is to the `tests` directory. The `tests` module isn't needed
500500
here, since the whole thing is focused on tests.
501501

502+
Note, when building integration tests, cargo will not pass the `test` attribute
503+
to the compiler. It means that all parts in `cfg(test)` won't be included in
504+
the build used in your integration tests.
505+
502506
Let's finally check out that third section: documentation tests.
503507

504508
# Documentation tests

0 commit comments

Comments
 (0)