about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFreyskeyd <simon.paitrault@iadvize.com>2017-01-04 16:02:34 +0100
committerFreyskeyd <simon.paitrault@iadvize.com>2017-01-24 21:04:38 +0100
commitb996a7ecec4bb22a28bce3b86f68fe51b4409287 (patch)
tree201883b433b43385d61d021d1c884970d5f1ee7d
parent9c0e373f914bba7adc85d8d2b6b7a561b6102937 (diff)
Fix doc cfg(test) and tests directory
Signed-off-by: Freyskeyd <simon.paitrault@iadvize.com>
-rw-r--r--src/doc/book/testing.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/book/testing.md b/src/doc/book/testing.md
index 96cec7295aa..6fefa1c9f1e 100644
--- a/src/doc/book/testing.md
+++ b/src/doc/book/testing.md
@@ -499,6 +499,10 @@ be imported in every test with `mod common;`
 That's all there is to the `tests` directory. The `tests` module isn't needed
 here, since the whole thing is focused on tests.
 
+Note, when building integration tests, cargo will not pass the `test` attribute
+to the compiler. It means that all parts in `cfg(test)` won't be included in
+the build used in your integration tests.
+
 Let's finally check out that third section: documentation tests.
 
 # Documentation tests