Testing#
M4OPT has extensive unit tests which are run automatically in GitHub Actions. Code coverage is reported on Codecov.io. You can also follow these instructions to run the unit tests locally, on your own computer:
Clone the M4OPT git repository onto your computer by running this command:
git clone https://github.com/m4opt/m4opt.git
Enter the cloned repository directory:
cd m4opt
Install M4OPT using pip in editable mode with the
testextra:pip install -e .[test]
Run the unit tests:
pytest