-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor tests folder + add some documentation
- Loading branch information
Showing
3 changed files
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//! # Auth Tests | ||
//! | ||
//! Here should be grouped every test that is related to the | ||
//! user's authentication. | ||
mod register; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//! # Tests | ||
//! | ||
//! The tests are organized by folder. | ||
//! | ||
//! To run the tests, please limit the number of threads with | ||
//! `cargo test -- --test-threads=1`. | ||
//! Since the database is reset at the begining of each test, this is the best | ||
//! way to prevent the use of shared state. | ||
//! | ||
//! Cargo by default only tests the files that are at the root of the `/tests` | ||
//! directory. | ||
//! So we have to add all the modules that are used for testing purposes. | ||
mod auth; | ||
mod init; |