🧪 test.sh
This script is used to run the pytest tests for the project.
The script performs the following operations:
- Running pytest: Runs the pytest tests for the project.
- Logging: If the
-lor--logoption is provided, the script will log the output of the pytest tests to console. - Coverage: If the
-cor--covoption is provided, the script will run the pytest tests with coverage. - Verbose: If the
-vor--verboseoption is provided, the script will run the pytest tests with verbose error outputs.
Usage:
To execute the test script, simply run the following command in the terminal:
Examples:
- To test:
./test.sh - To test with logging:
./test.sh -l - To test with coverage:
./test.sh -c - To test with verbose:
./test.sh -v - To test with logging, coverage and verbose:
./test.sh -l -c -v
This script will run the pytest tests for the project. It can also be used to run the tests with logging, coverage, and verbose options.