-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ms4 final: minor fix on running tests (#76)
* Update README.md * Update and rename README to README.md * Update README.md * Update README.md * Update CHANGELOG.md * Update README.md change testing from root to tests/ * Update tests/README.md * Update tests/README.md * Update tests/README.md * Update README.md --------- Co-authored-by: Farhan Bin Faisal <[email protected]>
- Loading branch information
1 parent
9656176
commit 5f48935
Showing
3 changed files
with
14 additions
and
9 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
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 |
---|---|---|
@@ -1,20 +1,24 @@ | ||
Use the bash command below to change directory from root to `tests/` | ||
`cd tests` | ||
|
||
Run each test one by one in the `tests/` directory: | ||
``` | ||
pytest test_validate_column_names.py | ||
pytest test_split_data.py | ||
pytest -v test_random_search.py \ | ||
--train_data=../data/proc/wine_train.csv \ | ||
--test_data=../data/proc/wine_test.csv \ | ||
--pipeline_path=../results/models/wine_pipeline.pickle | ||
pytest test_validate_column_names.py | ||
|
||
pytest test_split_data.py | ||
|
||
pytest test_evaluation.py | ||
``` | ||
|
||
Test all at once with the command below: | ||
Or run all tests at once in the `tests/` directory with the command below: | ||
``` | ||
pytest -v \ | ||
--train_data=../data/proc/wine_train.csv \ | ||
--test_data=../data/proc/wine_test.csv \ | ||
--pipeline_path=../results/models/wine_pipeline.pickle | ||
``` | ||
``` |