Fix doc cfg(test) and tests directory

Signed-off-by: Freyskeyd <simon.paitrault@iadvize.com>
This commit is contained in:
Freyskeyd 2017-01-04 16:02:34 +01:00
parent 9c0e373f91
commit b996a7ecec
No known key found for this signature in database
GPG key ID: 5A645DEDF790F113

View file

@ -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