[BUG] --state used when it shouldn't be

Ovid publiustemp-tapx at yahoo.com
Thu Jan 3 05:57:09 EST 2008


In my home directory, I have the following .proverc:

  # .proverc
  --state=hot,fast,save

In doing some debugging work, I was trying to run prove on a single
test file and was confused when all of my tests were running (sample
names, of course):

  temp $ prove  t/whee.t
  t/whee......1/?
  #   Failed test 'You've got FAIL!'
  #   at t/whee.t line 7.
  # Looks like you failed 1 test of 1.
  t/whee...... Dubious, test returned 1 (wstat 256, 0x100)
   Failed 1/1 subtests
  t/foo.......ok
  dump........ok

  Test Summary Report
  -------------------
  t/whee.t (Wstat: 256 Tests: 1 Failed: 1)
    Failed test number(s):  1
    Non-zero exit status: 1
  Files=3, Tests=3,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.08 cusr
 0.03 csys =  0.14 CPU)
  Result: FAIL

It seems to me that if I run prove with an explicit set of tests, only
those tests should be run, regardless of what's in my .proverc.

On a different note, we are now running one project's tests in three
directories (well, we're about to create the third):

  t/
  test/aggregate
  test/standards

Should the .prove file group tests by directory instead of assuming
that all tests which are run will be run every time?  In other words,
when I run:

  prove -rl --state=hot,fast,save t/

And:

  prove -rl --state=hot,fast,save test/standards

I won't those to run different sets of tests (obviously), even though
I'm running them from the same directory :)

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/


More information about the tapx-dev mailing list