Re: [Perlunit-users] Using @TESTS for changing tests execution order
Status: Beta
Brought to you by:
mca1001
From: Dmitry D. <dd...@ic...> - 2003-10-15 03:27:14
|
Phlip wrote: >>Can you suggest a structure of tests for testing insert, select and >>delete operations? I suppose that I can write something like tis: >> >>sub test_001_insert { >>... insert record and do some tets >>} >> >>sub test_002_select { > > test_001_insert(); > >>... select record inserted in previous test and do some tets >>} >> >>sub test_003_delete { > > test_002_select(); > >>... delete the above record and do some tets >>} > > > ;-) > Neat :) As far as I can see, the only drawback of this approach is the waste of time? -- Dmitry. |