From: Chad Fowler Date: 2003-01-28T03:12:14+09:00 Subject: Re: Test::Unit -> order of tests? I humbly disagree with this. If the order of the tests is guaranteed, it would promote temporal coupling between the test cases. It's better to let each "test..." method stand alone without dependencies on the other methods. Chad On Tue, 28 Jan 2003, ahoward wrote: > 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 > > > > > > > > > > > > > > > > > > >