Skip to content

zamj/selected-tests

 
 

Repository files navigation

Selected Tests

This service is used to predict which tests need to run based on code changes.

Set up environment

pip install -r requirements.txt
pip install -e .

Run app locally

python src/selectedtests/app/app.py

Run tests

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

Style

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.

Deploy

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 .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.6%
  • Dockerfile 13.9%
  • Shell 3.5%