From: Eric Hodel Date: 2005-11-15T07:07:06+09:00 Subject: Re: Putting unit test cases in the code - RDoc & UnitTest On Nov 14, 2005, at 9:32 AM, Trans wrote: > With Facets I use a remark: > > =begin test > require 'text/unit' > class ATest << Test::Unit::TestCase > ... > end > =end > > when I want to run the test I remark the remarks: > > #=begin test > ... > #=end > > That works good for dev testing. > > Later when I want to run the enite testsuite I use a Reap task (see > Rubyforge) that extracts and copies the remarked tests to the test > directory. I like to run my tests all the time, and I like source control to run tests for me when I check in to make sure I didn't forget. Having to edit a file to run them is unnecessary extra work. This extra work does not reinforce good testing discipline. -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04