Re: Passing parameters to test scripts

2007-04-05 Thread Philippe Bruhat (BooK)
Le mercredi 04 avril 2007 à 11:11, Eric Wilhelm écrivait: > > Now, the problem you're trying to solve appears to be "run only part of > the tests". To me, that doesn't involve passing parameters to the > scripts. No, I've already solved that problem by putting the tests in separate directories

Re: Passing parameters to test scripts

2007-04-05 Thread Eric Wilhelm
# from Philippe Bruhat (BooK) # on Thursday 05 April 2007 02:29 am: >No, I've already solved that problem by putting the tests in separate >directories. E.g., I've now a single pod.t file in test/pod that >will use Test::Pod on all the files in cwd (or the files passed as >command line parameters

Re: Passing parameters to test scripts

2007-04-05 Thread Andy Armstrong
On 4 Apr 2007, at 18:59, Eric Wilhelm wrote: # from Andy Armstrong # on Wednesday 04 April 2007 05:58 am: runtests t/*.t --select regression,docs Would select only regression and documentation tests. That's just an example plucked out of the ether of course - it wouldn't /have/ to work like

Re: Passing parameters to test scripts

2007-04-04 Thread Chris Dolan
On Apr 4, 2007, at 1:41 PM, Eric Wilhelm wrote: What I was thinking of here was more along the lines of how to get Test::Class to play that game. It already does. I routinely do stuff like this with Test::Class: env TEST_METHOD='student_.*' ./Build testcover to test, say, the student port

Re: Passing parameters to test scripts

2007-04-04 Thread chromatic
On Wednesday 04 April 2007 11:41, Eric Wilhelm wrote: > # from chromatic > >It seems to me that we already have a good way of separating tests per > > their behavior: separate test files and even separate test > > directories. > Correct. See my other post and the test profiles thing in > Module

Re: Passing parameters to test scripts

2007-04-04 Thread Eric Wilhelm
# from chromatic # on Wednesday 04 April 2007 11:24 am: >> Can we think about this in terms of the producer supporting some >> sort of dynamic skip concept involving labels or such?  Possibly a >> bit of yaml shoved in an environment variable? > >It seems to me that we already have a good way of s

Re: Passing parameters to test scripts

2007-04-04 Thread chromatic
On Wednesday 04 April 2007 11:11, Eric Wilhelm wrote: > Can we think about this in terms of the producer supporting some sort of > dynamic skip concept involving labels or such?  Possibly a bit of yaml > shoved in an environment variable? It seems to me that we already have a good way of separati

Re: Passing parameters to test scripts

2007-04-04 Thread Eric Wilhelm
# from Philippe Bruhat (BooK) # on Wednesday 04 April 2007 05:42 am: >Usually because I want to run a specific subset of tests only. > >A typical example is: > >    $ AMS_REMOTE=1 perl -Ilib t/90up2date.t simpsons >    1..26 >    # Testing 13 themes using the network (may take a while) >    ok 1 #

Re: Passing parameters to test scripts

2007-04-04 Thread Eric Wilhelm
# from Andy Armstrong # on Wednesday 04 April 2007 05:58 am: >  runtests t/*.t --select regression,docs > >Would select only regression and documentation tests. That's just an   >example plucked out of the ether of course - it wouldn't /have/ to   >work like that. Meaning that every test has to d

Re: Passing parameters to test scripts

2007-04-04 Thread Eric Hacker
On 4/4/07, Philippe Bruhat (BooK) <[EMAIL PROTECTED]> wrote: I've found myself passing parameters to some of my tests scripts. Usually because I want to run a specific subset of tests only. ... Thoughts, anyone? Wonderful idea. I'll take it off of my list of things to bring up someday. I oft

Re: Passing parameters to test scripts

2007-04-04 Thread Philippe Bruhat (BooK)
Le mercredi 04 avril 2007 à 13:58, Andy Armstrong écrivait: > > If you're running more than one test script with runtests / prove > you'll presumably be sending the same arguments to all of them. So it > might make sense to think about a standard(ish) vocabulary for args - > so that: > > r

Re: Passing parameters to test scripts

2007-04-04 Thread Ovid
--- "Philippe Bruhat (BooK)" <[EMAIL PROTECTED]> wrote: > These parameters are obviously tightly linked to the test script > itself, > but I think it would be nice if prove allowed me to pass arguments to > my test scripts. Naturally, it would be my responsibility, as the > developer of the test s

Re: Passing parameters to test scripts

2007-04-04 Thread Michael G Schwern
Philippe Bruhat (BooK) wrote: > Hi, > > I've found myself passing parameters to some of my tests scripts. > Usually because I want to run a specific subset of tests only. > > A typical example is: > > $ AMS_REMOTE=1 perl -Ilib t/90up2date.t simpsons Why not use an environment variable? You

Re: Passing parameters to test scripts

2007-04-04 Thread Andy Armstrong
On 4 Apr 2007, at 13:42, Philippe Bruhat (BooK) wrote: Would it make sense to patch Test::Harness (and Test::Harness::Strap) so that _command_line() would be able to create a command-line with parameters? Thoughts, anyone? It sounds like a sensible idea to me. It'd probably make more sense t

Passing parameters to test scripts

2007-04-04 Thread Philippe Bruhat (BooK)
Hi, I've found myself passing parameters to some of my tests scripts. Usually because I want to run a specific subset of tests only. A typical example is: $ AMS_REMOTE=1 perl -Ilib t/90up2date.t simpsons 1..26 # Testing 13 themes using the network (may take a while) ok 1 # skip A