News for hackers. Stuff that matters.
Re:[Ask HN] Teach me how to unit test by vivekchand19 on Monday May 05, 2014 @12:55PM (#7699595)
Unit testing is all about abstracting / mocking out all the modules connected to the unit you are testing & just test your unit.

If you are programming in python, http://www.voidspace.org.uk/python/mock/ would be the most preferred way of mocking out other external units connected to your unit under test.

http://alexmarandon.com/articles/python_mock_gotchas/ should make you an expert on mocking

There are no comments on this comment yet.