TAP::Harness improvements
Ovid
publiustemp-tapx at yahoo.com
Fri Nov 16 07:20:46 EST 2007
Hi all,
A couple of other things I think could be useful:
prove --count
That would adjust test output to look like this:
257/340 t/acceptance-tests/customer.t
258/340 t/acceptance-tests/brand.t
259/340 t/acceptance-tests/products.t
260/340 t/acceptance-tests/services.t
261/340 t/acceptance-tests/master.t
262/340 t/acceptance-tests/authentication.t
I'm running Devel::Cover over a large test suite right now and I find that I need to write a separate script which showed the test count and current test. It's easy and useful to incorporate this. Thoughts? If we like this, I'd be happy to write it (after all, AndyA has been doing virtually everything lately and I'd like to let him know he's not *completely* abandoned :)
Also, I know AndyA had some ideas on this, but we have a problem that would be very useful to solve.
Currently we have a bunch of pairs of files which look like this:
t/foo/customer.yml
t/foo/customer.t
t/foo/brand.yml
t/foo/brand.t
Each YAML file has a separate, but identical, .t file which loads the YAML and runs the tests in it. This is useful as the tests are data driven, but the libraries can be expensive to load and it takes almost 10 minutes. We could get a nice speedup by having a master 'yaml_runner.t' which loads the libraries once, but each YAML file has its own test count. We talked in the past about nested TAP streams and this would make conversion *much* easier. Thoughts? I can work around this by having the code load the tests and sum the test counts, but rather than custom code which does this every time, nested TAP would make this problem go away.
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