We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c0e373 commit b996a7eCopy full SHA for b996a7e
src/doc/book/testing.md
@@ -499,6 +499,10 @@ be imported in every test with `mod common;`
499
That's all there is to the `tests` directory. The `tests` module isn't needed
500
here, since the whole thing is focused on tests.
501
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
+
506
Let's finally check out that third section: documentation tests.
507
508
# Documentation tests
0 commit comments