Code used to do the Test Doubles workshop originaly imparted in Calidae.
First, install the dependences in your virtual environment with:
pip install -r requirements.txt
In every folder you will find a piece of code to understand one test double.
Work inside one, and pass the local tests with pytest
.
Note that real code and tests are in the same file for simplicity.
- http://doubles.readthedocs.io/en/latest/terminology.html
- https://www.youtube.com/watch?v=zW0f4ZRYF5M
- http://garajeando.blogspot.com.es/2016/05/the-ohce-kata-short-and-simple-exercise.html
- https://github.com/testdouble/contributing-tests/wiki/Test-Double
- http://codingdojo.org/kata/TradingCardGame/
- http://engineering.pivotal.io/post/the-test-double-rule-of-thumb/
- https://8thlight.com/blog/uncle-bob/2014/05/14/TheLittleMocker.html