Skip to content

Commit d71f9f6

Browse files
committed
Fixed ambiguous explanaiton of tests/ directory
1 parent 0646e8a commit d71f9f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/doc/book/testing.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,9 @@ the `tests` directory.
380380

381381
# The `tests` directory
382382

383-
To write an integration test, let's make a `tests` directory, and
384-
put a `tests/lib.rs` file inside, with this as its contents:
383+
Each file in `tests/*.rs` directory is treated as individual crate.
384+
So, to write an integration test, let's make a `tests` directory, and
385+
put a `tests/integration_test.rs` file inside, with this as its contents:
385386

386387
```rust,ignore
387388
extern crate adder;

0 commit comments

Comments
 (0)