Re: An --exclude parameter for prove?

2011-10-24 Thread Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
I think Test::Less (recommended) and Test::Slow already do that.


signature.asc
Description: PGP signature


Re: An --exclude parameter for prove?

2011-10-24 Thread Jon Hermansen
I was going to suggest just using find(1) to pass the list of test
directories to prove. You should be able to do something like this from a
shell:

# prove -v $(find t -type d -not -name 'dont_run')


I didn't test it myself but found myself doing something similar last week,
let us know which route you end up taking.

On Mon, Oct 24, 2011 at 5:46 AM, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯  wrote:

> I think Test::Less (recommended) and Test::Slow already do that.
>


Re: An --exclude parameter for prove?

2011-10-24 Thread Andy Lester

On Oct 24, 2011, at 12:46 PM, Jon Hermansen wrote:

> I was going to suggest just using find(1) to pass the list of test
> directories to prove. You should be able to do something like this from a
> shell:


Before there was prove, the way we ran tests was to either run "make test" or 
use find to create a list of files to pass to "perl -MTest::Harness blah blah 
blah".  I created prove because I was tired of doing it that way.  I had a 
common task that needed a short way to do it, so I wrote prove.

If we have tools at our disposal, and they can be improved, then lets do that, 
rather than saying to "just" do this workaround.  If we always took that 
approach, then we would never have prove in the first place.

xoxo,
Andy

--
Andy Lester => a...@petdance.com => www.petdance.com => AIM:petdance



Re: An --exclude parameter for prove?

2011-10-27 Thread Steffen Schwigon
Dan Wright  writes:
> Hello,
>
> I'm curious if a patch for prove that included an --exclude parameter
> would be welcome?

I haven't heard a clear Yes yet. So: Yes! IMHO it is a useful idea.

The minor challenge is in implementing it platform independent.
The major challenge is to learn from history, eg. from tar's carnage
with --exclude patterns, AFAIR.

Kind regards,
Steffen 
-- 
Steffen Schwigon 
Dresden Perl Mongers