--state breaks refactoring

Ovid publiustemp-tapx at yahoo.com
Wed Dec 19 07:19:28 EST 2007


Try this:

  $ mkdir t
  $ vim t/foo.t t/bar.t

And make those tests look like this:

  use Test::More tests => 1;
  ok 1;

Run them with your favorite "state" incantation:

  prove --state=hot,fast,save t

Then:

  $ rm t/foo.t
  $ prove --state=hot,fast,save t
  t/bar......ok
  Cannot determine source for t/foo.t at
/home/poec01/code/cpan/share/perl/5.8.8/App/Prove.pm line 427

Oops.  I've been doing a lot of work refactoring tests lately and
renaming or moving tests causes this to break.

Cheers,
Curtis

--
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