From d71f9f614c099569ccb46853d48dbb390fe191a2 Mon Sep 17 00:00:00 2001 From: Jakob Demler Date: Fri, 3 Jun 2016 11:43:42 +0200 Subject: [PATCH] Fixed ambiguous explanaiton of tests/ directory --- src/doc/book/testing.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/doc/book/testing.md b/src/doc/book/testing.md index 4ea114c4bee6..a1b5d2b1dd84 100644 --- a/src/doc/book/testing.md +++ b/src/doc/book/testing.md @@ -380,8 +380,9 @@ the `tests` directory. # The `tests` directory -To write an integration test, let's make a `tests` directory, and -put a `tests/lib.rs` file inside, with this as its contents: +Each file in `tests/*.rs` directory is treated as individual crate. +So, to write an integration test, let's make a `tests` directory, and +put a `tests/integration_test.rs` file inside, with this as its contents: ```rust,ignore extern crate adder;