TAP for skipping all tests

2007-01-24 Thread Ovid
http://search.cpan.org/dist/Test-Harness/lib/Test/Harness/TAP.pod implies that if I want to skip all tests, I need something like this format: 1..0 # SKIP why not? I've also noticed that all of the Test::Harness tests which exercise this behavior use '1..0', even though this is only implied,

Re: TAP for skipping all tests

2007-01-24 Thread Steve Peters
On Wed, Jan 24, 2007 at 04:43:52AM -0800, Ovid wrote: http://search.cpan.org/dist/Test-Harness/lib/Test/Harness/TAP.pod implies that if I want to skip all tests, I need something like this format: 1..0 # SKIP why not? I've also noticed that all of the Test::Harness tests which exercise

Re: TAP for skipping all tests

2007-01-24 Thread Ovid
--- Steve Peters [EMAIL PROTECTED] wrote: My guess is that the number of test run may depend on things determined after the point you decided to skip all the tests. Sounds reasonable, but I also think it should be optional. Cheers, Ovid -- Buy the book --

Test::More and Fatal

2007-01-24 Thread Nik Clayton
Has anyone ever used Test::More and Fatal together? I have a test script, where each test builds upon the work of the previous step (it's part of the Subversion Perl bindings test suite, and it checks out files, makes changes to them, commits them, and so on). If any of these tests fails I

Re: Test::More and Fatal

2007-01-24 Thread Chris Dolan
On Jan 24, 2007, at 9:42 AM, Nik Clayton wrote: Has anyone ever used Test::More and Fatal together? I have a test script, where each test builds upon the work of the previous step (it's part of the Subversion Perl bindings test suite, and it checks out files, makes changes to them, commits

Re: Test::More and Fatal

2007-01-24 Thread Nik Clayton
Chris Dolan wrote: I don't like that very much. The implicit die() on test functions will probably confuse subsequent readers of the code. # Cause the listed functions to die on error use Fatal qw(...); Furthermore, I cannot believe that ALL of your tests are critical. 150 or so out

Re: Test::More and Fatal

2007-01-24 Thread Chris Dolan
On Jan 24, 2007, at 1:25 PM, Nik Clayton wrote: Chris Dolan wrote: I don't like that very much. The implicit die() on test functions will probably confuse subsequent readers of the code. # Cause the listed functions to die on error use Fatal qw(...); Furthermore, I cannot believe

Re: TAP for skipping all tests

2007-01-24 Thread Michael G Schwern
Ovid wrote: http://search.cpan.org/dist/Test-Harness/lib/Test/Harness/TAP.pod implies that if I want to skip all tests, I need something like this format: 1..0 # SKIP why not? I've also noticed that all of the Test::Harness tests which exercise this behavior use '1..0', even though this

Re: A Modest Request

2007-01-24 Thread Michael G Schwern
James E Keenan wrote: What with all the activity on this list in the last week (TAPx::Parser about to morph into Test::Harness), it's all been more than I can keep up with. I would like to suggest that one or more or the hackerati who are working on all these revisions to our core testing

Re: Test::More and Fatal

2007-01-24 Thread Joshua ben Jore
On 1/24/07, Nik Clayton [EMAIL PROTECTED] wrote: Has anyone ever used Test::More and Fatal together? I have a test script, where each test builds upon the work of the previous step (it's part of the Subversion Perl bindings test suite, and it checks out files, makes changes to them, commits

Re: A Modest Request

2007-01-24 Thread Shawn Boyette
On 1/23/07, James E Keenan [EMAIL PROTECTED] wrote: I would like to suggest that one or more or the hackerati who are working on all these revisions to our core testing functionality write an article about what's happening. I second that emotion. -- Shawn Boyette [EMAIL PROTECTED]

Re: Test::More and Fatal

2007-01-24 Thread A. Pagaltzis
* Nik Clayton [EMAIL PROTECTED] [2007-01-24 16:45]: Anyone used this approach before, or done anything similar? I haven’t, but it seems perfectly reasonable if you can live with Fatal’s annoying stack traces. Another option would be something like sub ensure { $_[ 0 ] or die broken

functional literate programming

2007-01-24 Thread Luke Closs
Hey folks, Konobi pointed me at an interesting talk about writing customer readable tests that were also executable. The video is from the Google London Test Automation Conference. (The code is in some ugly language... ;)