Unit testing fundamentals (was: Python for large projects)

Simon Strandgaard neoneye at adslhome.dk
Wed Mar 24 15:53:09 EST 2004


On Wed, 24 Mar 2004 18:07:14 +0000, Cameron Laird wrote:
> In article <mailman.357.1080147061.742.python-list at python.org>,
> gabor  <gabor at z10n.net> wrote:
> 			.
> 			.
> 			.
>>(a more generic request: is there on the internet a webpage with
>>something like this? one where they have some complex
>>modules/programs/algorithms, and they show how to write unittests for
>>them?)
> 			.

Take a look at my regexp engine, it contains both whitebox tests which
utilizes mock objects and blackbox tests at different levels.

http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/projects/regexp_engine/test/?cvsroot=aeditor&only_with_tag=b2004_02_26


Don't let the output fool you, there is still lots of bugs!
server> ruby test_all.rb 
Loaded suite Unnamed TestSuite
Started
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 6.794145 seconds.

657 tests, 780 assertions, 0 failures, 0 errors
server>

--
Simon Strandgaard



More information about the Python-list mailing list