Re: Stupid prove tricks

2009-02-26 Thread Jonathan Rockway
* On Wed, Feb 25 2009, Michael G Schwern wrote: > Here's a kind of crappy way to make TAP read from STDIN. > > $ prove --exec 'cat -' test.dummy > test > > Now you can write TAP and finish with ctrl-d. But test.dummy has to exist. I just tried this, and it works without test.dummy existin

Re: Stupid prove tricks

2009-02-25 Thread Yitzchak Scott-Thoennes
On Wed, February 25, 2009 6:06 pm, Michael G Schwern wrote: > $ prove --exec 'cat -' test.dummy > test > > Now you can write TAP and finish with ctrl-d. But test.dummy has to > exist. /dev/null works for me. Perhaps you could post your tricks: http://perlmonks.org/?node=Meditations#post

Stupid prove tricks

2009-02-25 Thread Michael G Schwern
Just some prove tricks I thought I'd pass along. Parse TAP from a file, rather than program output. Handy for doing experiments without having to mock up a program. $ cat ~/tmp/foo.tap 1..2 ok 1 ok 2 $ prove --exec 'cat' ~/tmp/foo.tap /Users/schwern/tmp/foook All