This service is used to predict which tests need to run based on code changes.
pip install -r requirements.txt
pip install -e .
python src/selectedtests/app/app.py
Testing is done via pytest. You can pass the --flake8 argument to perform some flake8 sanity checks on .py files.
pytest --flake8 -c pyproject.toml
To get code coverage information, you can run pytest directly.
$ pytest --cov=src --cov-report=html
This project is formatting with black. To autoformat your code, you can use the black command line tool:
$ black src tests --config setup.cfg
See the black documentation for details on how to configure your editor to automatically format your code.
Deployment is done via helm to kanopy. The project will automatically be deployed on merge to master. The deployed application will be at http://selected-tests.server-tig.prod.corp.mongodb.com .