Skip to content

Commit

Permalink
Merge pull request #116 from UBC-MDS/functions
Browse files Browse the repository at this point in the history
Create readme for test cases
  • Loading branch information
jasonmlee authored Dec 14, 2024
2 parents 27550f6 + de8a9b6 commit 10f303b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ RUN mamba update --quiet --file /tmp/conda-linux-64.lock \
&& fix-permissions "/home/${NB_USER}"

RUN pip install deepchecks==0.18.1




33 changes: 33 additions & 0 deletions testcases/Readme.md
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


0 comments on commit 10f303b

Please sign in to comment.