Parsing TAP and getting the failing line number

2007-10-05 Thread Mark Fowler
Hello list. I would like to press a key shortcut in my text editor and have it run the test I'm currently editing. If there are any failures, I'd like to be able to click on them and it go to the line that the failing test was on. Since my current editor is TextMate this involves creati

Re: YAML?

2007-03-19 Thread Mark Fowler
On 19 Mar 2007, at 13:03, Adrian Howard wrote: Nope. It's to add some simple YAML-ish output in places to help clarify things. It's also a very small subset of YAML rather than the full YAML spec. See Why not JSON? http://www.json.o

Re: [tapx-dev] TAP::Parser, structured diagnostics

2007-03-16 Thread Mark Fowler
On 16 Mar 2007, at 02:52, Michael G Schwern wrote: That should be this: 1..5 ok 1 ok 2 #--- - fnurk: skib ponk: gleeb - bar: krup foo: plink ... ok 3 Isn't that putting schematically important info in the comment (the -- of the #). I know we already do it for TODO, but I thought t

Re: nested groups in TAP

2007-03-12 Thread Mark Fowler
On 11 Mar 2007, at 22:01, Michael G Schwern wrote: Fergal Daly wrote: You're suggesting that each call to extend the plan verifies that the previous plan has been executed fully? That does not allow nesting. Yes, nesting is what this proposal does which cannot be done now. Unfortuantely the

Re: Return values from a test as a right value.

2007-02-26 Thread Mark Fowler
On 24 Feb 2007, at 22:58, Michael G Schwern wrote: Just make sure whatever you return evaluates according to the test pass/fail and not its value and you should be fine. You can return a little wrapper object like... Or you could just return a reference to an array with the value in it

Test::Builder::Tester and all that Jazz

2005-10-08 Thread Mark Fowler
I've got the flu. I'm running a fever of 102F. I haven't understandably been paying close attention to my mail. It seems things have got suddenly and inexplicably urgent with regard to Test::Builder::Tester. So, many people have been contacting me suggesting that apparently I need to do stuff r

Test::DoubleQuotedEntities

2004-08-24 Thread Mark Fowler
x27;em into RT. Patches against http://unixbeard.net/svn/mark/perlmods/ always welcome. (oh, and as an aside I released a new Acme::Test::Buffy, with slightly improved documentation and spelling too - but no one cares about that) -- #!/usr/bin/perl -T use strict; use warnings; print q{Mark Fowler,

Re: [ANNOUNCE] Test::Simple 0.48_02

2004-07-30 Thread Mark Fowler
t to the new version. But hey, it's sunny, so whatdaicare... Mark. (Off for BBQ) -- #!/usr/bin/perl -T use strict; use warnings; print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};

Re: [ANNOUNCE] Test::Simple 0.48_02

2004-07-20 Thread Mark Fowler
his feature is final in T::S (this after all is an alpha release, I'm not sure this feature is here to stay) I'll release. Mark. -- #!/usr/bin/perl -T use strict; use warnings; print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};

Re: [ANNOUNCE] Test::Simple 0.48_02

2004-07-19 Thread Mark Fowler
ll release it to CPAN after this alpha ships. Mark. [1] http://unixbeard.net/svn/mark/perlmods/Test-Builder-Tester/ -- #!/usr/bin/perl -T use strict; use warnings; print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};

New version of Test::Builder::Tester on The CPAN

2004-07-01 Thread Mark Fowler
hat format the debug output's gonna take, and you don't want to write those tests just then. Enjoy. Mark. -- #!/usr/bin/perl -T use strict; use warnings; print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};

Re: My Phalanx lightning talk

2004-06-19 Thread Mark Fowler
start the ball rolling by volenteering to kick London.pm into shape until some work happens on that. Thoughts? Comments? -- #!/usr/bin/perl -T use strict; use warnings; print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};

Re: Scrutinizing CPAN distributions (Commenting Styles)

2003-08-18 Thread Mark Fowler
't it? Botheration. I'll liase with that Orange Lover and find out what this kind of thing involves. Mark. -- #!/usr/bin/perl -T use strict; use warnings; print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};

Re: Using environment variables to control long running tests

2003-06-05 Thread Mark Fowler
ld be sure that my install script won't fail unless a test actually fails. Mark. -- #!/usr/bin/perl -T use strict; use warnings; print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};

Test::? Directories

2003-02-24 Thread Mark Fowler
he kind of thing to use alongside Test::Builder. Suggestions? Mark. -- #!/usr/bin/perl -T use strict; use warnings; print q{Mark Fowler, [EMAIL PROTECTED], http://twoshortplanks.com/};

Test::DatabaseRow and Test::CGI::Untaint

2003-02-10 Thread Mark Fowler
uests for these modules via the CPAN RT system. Chris Nandor already suggested that Test::DatabaseRow should have a test to check that data *isn't* in the database, which I'll get round to working on as soon as we have some free time. Mark. -- #!/usr/bin/perl -T use strict; use warn

Re: Binary-wise is()

2002-11-27 Thread Mark Fowler
/full_slides/ > for details about using Test::Builder. See also Acme::Test::Buffy (lame example testing module), and Test::Builder::Tester for help testing Test::Binary. Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com

Re: And for the mod_perl folks... Test::Builder->reset

2002-11-11 Thread Mark Fowler
e never exposed to the level above). > I can't think of why you'd want two T::B objects which are only partially > sharing state. Agreed. > > > The real reason why I put all the data into lexicals rather than a hash is > > > because its easier to type $Have_Plan than $

Re: Test::Builder->level

2002-11-11 Thread Mark Fowler
draw back I can see is it would mean that test_foo couldn't itself be recursive (though it could call another function that made it so) Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTE

Re: Web Site Testing

2002-09-23 Thread Mark Fowler
ich is totally different to using "as fast as possible" testing routines. Of course, there is a section in The Guide about this[2]. Mark. [1] http://www.acme.com/software/http_load/ [2] http://perl.apache.org/docs/1.0/guide/performance.html#Benchmarking_Applications --

Acme::Test::Buffy

2002-09-20 Thread Mark Fowler
would consider submitting bug reports and patches to this...even if they are just patching a typo in the comments. Right, better get ready for my talk. Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/

Website problems?

2002-08-19 Thread Mark Fowler
bash-2.05b$ HEAD qa.perl.org 500 read timeout Client-Date: Mon, 19 Aug 2002 16:01:05 GMT Problems? Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Term'Cap;$t=Tgeten

Thread-safe Test::Builder

2002-06-15 Thread Mark Fowler
rk. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/ +/ ){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}

Re: Pondering Test::Depend

2002-06-08 Thread Mark Fowler
a hash of the code (a la inline) - possible sans pod Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(spli

Re: What ever happened to Test::Set?

2002-05-25 Thread Mark Fowler
e results. If not, I'll probably get round to starting coding this in a month or so. Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Term'Cap;$t=Tgetent Term'C

Re: Comparing Data Structures Slopply

2002-04-10 Thread Mark Fowler
eys %a == keys %b and that grep { $a{$_} } keys %b and grep { $b{$_} } keys %a. Later. Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Term'Cap;$t=Tgetent Term&#x

Re: Test::Exception... comments?

2002-04-10 Thread Mark Fowler
is->method } "/^not inited/"; and have it always work. Of course, before you can use Test::Exception on perl5.004 I'll have to get round to fixing the bugs (http://rt.cpan.org/NoAuth/Bug.html?id=456) in Test::Builder::Tester... Later. Mark. -- s'' Mark Fowler

Re: Comparing Data Structures Slopply

2002-04-09 Thread Mark Fowler
On Tue, 9 Apr 2002, Michael G Schwern wrote: > On Tue, Apr 09, 2002 at 03:26:21PM +0100, Mark Fowler wrote: > > There's a lot of other problems like that. So I was thinking of writing > > Test::Sloppy (aka Test::Fuzzy, aka...) > > What would it do? > > (I can

Comparing Data Structures Slopply

2002-04-09 Thread Mark Fowler
was thinking of writing Test::Sloppy (aka Test::Fuzzy, aka...) Quick qustions before I start a) Is this a good idea? b) Is there something else that already does this? c) Should I (those modules authors willing) attempt to merge it into other modules? Later. Mark. -- s'' Mark Fow

Re: Test::Builder and Test::More change requests

2002-04-04 Thread Mark Fowler
etc... But but I've already got two Test::Builder based modules in development ;-) I'll put it on my ever growing todo[1] Thanks for the changes to diag. Later. Mark. [1] /msg dipsy Trelane's fun todo. -- s'' Mark Fowler London.p

Test::Builder and Test::More change requests

2002-04-04 Thread Mark Fowler
true no matter what is called) Secondly, I was wondering about eq_set in Test::More. ok(eq_set([1,1,1],[1])); fails, where really it should work as sets don't care about reoccurring elements. Should this be 'eq_bag' instead? Later. Mark. -- s'' Mark Fowler

Re: More Test::Builder::Test stuff

2002-02-17 Thread Mark Fowler
On Sun, 17 Feb 2002, Mark Fowler wrote: > I'd really like to see that it still works on a system that > doesn't have Term::ANSIColor installed on it (it should turn colouring > into a no-op and skip tests, but I can't test that.) D'Oh! No it shouldn't.

More Test::Builder::Test stuff

2002-02-17 Thread Mark Fowler
se on other platforms? I've tried it on perl 5.6.1 on Linux. I'd really like to see that it still works on a system that doesn't have Term::ANSIColor installed on it (it should turn colouring into a no-op and skip tests, but I can't test that.) Later. Mark. -- s&

Re: makepmdist

2002-02-16 Thread Mark Fowler
e dist), and if you don't count the part about > actually submitting it to PAUSE, which would bring this to an aching TWO > steps. I wouldn't want automatic submission to PAUSE. Some of my stuff is in it's sixth version and still not fix for human consumption, only that of my fel

Re: Interactive tests?

2002-02-14 Thread Mark Fowler
TT_QUIET=y TT_ACCEPT=y to get it to shut up and just damn well install (I do this via $CPAN::Config->{makepl_args}.) I assume you did this Leon? Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMA

Re: Test::Builder::Tester

2002-02-10 Thread Mark Fowler
er change the message Test::Builder prints out for a standard line failure, all the test frameworks built with T::B::T won't break. Oh look, it's 1am again and I'm babbling. Mark. -- s'' Mark Fowler London.pm Bath.pm http:

Re: Test::Builder::Tester

2002-02-04 Thread Mark Fowler
On Mon, 4 Feb 2002, Michael G Schwern wrote: > Mark Fowler wrote: > > 3. Um, licencing of borrowed code (see AUTHOR) > > Take whatever you like. In fact, if you don't mind, I'd like to > distribute this with Test::Builder/More/Simple so I can use it to tes

Test::Builder::Tester

2002-02-04 Thread Mark Fowler
oes this work on older perls...I don't see any reason why not, but I've only tested it on 5.6.1 Right, it's now 1.38am, so I'm going to get some sleep. Night. Mark. (Thanks to Richard Clamp for some help with getting it this far) -- s'' Mark Fowler

Testing Tests

2002-01-02 Thread Mark Fowler
l a method in Test::Builder that would cause the next call to ok() to fail if it should pass and vice versa (and return true where it would have returned true and false when it would have returned true.) Later. Mark. -- s'' Mark Fowler London.pm

Re: emitting messages in Test::*

2001-12-19 Thread Mark Fowler
uot;second test"); Of course, a nicer interface than having to fall back to Test::Builder would be, um, nice. Later. Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Te