A coding kata to practice TDD. Christmas Lights Kata. I used python.
app
containsboard.py
tests
contains tests definitions
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'