Gabor, Since you are in the field of testing - then you probably know about the other frameworks in other languages. Specifically what Ruby's Cucumber is about.
I tried writing something similar in Perl, using Test::More no less. But I believe you are a far better perl programmer than me, and I would love to hear your comments -- if you agree to take a look. The project (one small perl file really) is currently here: http://github.com/kesor/p5-cucumber/ Just thought that it would be interesting to you even if you don't have time to help out a little bit. Regards, Evgeny On Fri, Mar 13, 2009 at 2:40 PM, Evgeny <[email protected]> wrote: > If my script ended early, because maybe even a core dump ... the I wont > care. It's just another case of a failed test that cant be reported by > Test::More, but a human looking at the screen will hopefully understand what > happened. > > > On Fri, Mar 13, 2009 at 2:34 PM, Gabor Szabo <[email protected]> wrote: > >> On Fri, Mar 13, 2009 at 2:04 PM, Evgeny <[email protected]> wrote: >> > I have seen the page : >> > >> http://perl-qa.hexten.net/wiki/index.php/Why_can%27t_a_program_count_its_own_tests >> > >> > And I still don't understand, why can't a perl program count its test >> and >> > then when all the tests are done write something like: >> > >> > I ran 45976347563873456 tests and 587643873645 of then failed and >> > 234598634875634 of them passed. >> > >> > (dont mind that the numbers dont add up) >> > >> > >> > Then you dont really need to "count" the amount of tests before hand, >> you >> > "count" them as you go, and will only know the final amount of tests at >> the >> > very end. >> > >> >> They can, just say >> >> use Test::More 'no_plan'; >> >> >> The problem is that what happens if you constantly >> get 100 success reports while in fact you had 300 >> tests, just you test script exited early? >> >> e.g. because you added an exit; in the middle to shortcut >> your test running while you were debugging some failing test. >> >> >> Gabor >> http://szabgab.com/test_automation_tips.html >> > >
