by Carlos Ble | Jun 11, 2008 | Software Development, Test Driven Development
A common test to check a function that operates on the filesystem is to create dummy files in the filesystem. However that is dirty because you have to make sure you’ve got the permissions in the filesystem and you delete the dummy files after the tests and so....
by Carlos Ble | Jun 10, 2008 | Software Development, Test Driven Development
Pyunit is a unit tests framework for Python. I believe it is the standard one. It works very well, however to run all the tests within a folder might be not trivial. You can do either hardcode the tests names to build the test suite or use this helper. The helper uses...
by Carlos Ble | Jun 5, 2008 | Software Development, Test Driven Development
Update: We have developed pyDoubles, a test doubles framework for Python which supports mock objects among other test doubles. We no longer use mocker (described in this post). The best article I’ve found on Mock Objects is again written by one of my favorite...
by Carlos Ble | Apr 15, 2008 | Now Reading, Software Development, Test Driven Development
TDD by Example is a master piece of Kent Beck. Excelent book with examples of this development methodology. I’d say that TDD is not that good without an architect, as usual, because you’ve got to decide the API, the interfaces you want as you write the...