Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 908 Bytes

README.md

File metadata and controls

47 lines (31 loc) · 908 Bytes

Christmas Lights Kata (TDD Coding Kata)

A coding kata to practice TDD. Christmas Lights Kata. I used python.

Project Layout

  • app contains board.py
  • tests contains tests definitions

Installation

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 tests with pytest

  • 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"

Resources

run from docker

'./docker_test.sh'