From: ahoward Date: 2003-01-28T02:57:54+09:00 Subject: Re: Test::Unit -> order of tests? On Tue, 28 Jan 2003, Michael Garriss wrote: > IMHO, it would be nice if they were run in the order they were defined. agreed. > > -mike > > ahoward wrote: > > >On Tue, 28 Jan 2003, Mauricio Fern�ndez wrote: > > > > > > > >>I'm new to Unit Testing and wanted to learn on it by writing the tests for a > >>cheap file-transfer protocol. There's some hand-shaking involved at the > >>beginning which _needs_ to be done before anything else. The problem is I'd > >>like to test that too, but I don't know if I can rely on any order in the > >>execution of the tests. OTOH, I don't know if it's OK to do everything in > >>#setup and do the assertions right there. > >> > >> > > > >i had a similar problem. nameing your tests in a manner which sorts lexically > >seems to work, eg : > > > > def test_a_whatever > > ... > > end > > > > def test_b_whatever > > ... > > end > > > >-a > > > > > > > > > > -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================