Parallel Change Coding Kata. It aims to practice refactoring.
app directory src code
tests directory for test files
Create virtual environment...
python3 -m venv .venv...activate it:
source .venv/bin/activate...and install requirements listed in requirements.txt file:
pip3 install -r requirements.txt- run :
python3 -m pytest tests/ - run tests with coverage:
python3 -m pytest --cov=app tests/ - run tests for changed code using
testmon:
ptw --runner "pytest --picked --testmon"
- http://pythontesting.net/framework/pytest/pytest-introduction/
- https://docs.pytest.org/en/latest/getting-started.html
'./docker_test.sh'