-
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.
Merge pull request #116 from UBC-MDS/functions
Create readme for test cases
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Test suite developer notes | ||
|
||
This repository contains test cases for validating different functionalities in the project. The test cases are written in Python and utilize the pytest framework for running and validating the results. | ||
|
||
### Prerequisites | ||
|
||
Before running the test cases, ensure the following dependencies are installed: | ||
|
||
1. pytest (pip install pytest) | ||
|
||
### Running the tests | ||
|
||
Tests are executed by running the 'pytest' command from the root directory of the project. | ||
|
||
### Test Files Overview | ||
|
||
The following test files are included: | ||
|
||
1. test_mean_cross_validation_score.py | ||
Tests the mean_cross_val_scores function. | ||
Validates classification model performance (e.g., RandomForestClassifier, LogisticRegression) using cross-validation. | ||
|
||
2. test_validate_train_data.py | ||
Tests the validate_category_distribution function. | ||
Ensures that categorical data distributions meet specified thresholds with tolerance. | ||
Covers cases such as valid distribution, invalid distribution, missing categories, empty input, and wider tolerance. | ||
|
||
3. test_write_csv.py | ||
Tests CSV file writing functionality. | ||
Validates if data is correctly written to CSV files. | ||
Running Tests | ||
|
||
|