Dne St 30.lis.2016 02:26:45, SREZIC napsal(a):
Show quoted text> See subject. Most or even all test failures visible on cpantesters.org
> (
http://matrix.cpantesters.org/?dist=File-BOM%200.15 ) are caused by
> testers using something like HARNESS_OPTIONS=jX in their setup. I
> don't see a simple solution --- there's no way to make sure that
> t/00..setup.t is executed first when using parallel or shuffled tests,
> or t/99..shutdown.t executed last.
TAP::Harness allows to define rules that define the test order (search for "rules" and "rulesfiles"). Probably the most convenient way is to create ./testrules.yml with this content:
seq:
- seq: t/00..setup.t
- par:
- t/01..bom.t
- t/02..perlio-via.t
- t/03..exceptions.t
- t/04..pod.t
- seq: t/99..shutdown.t
Of course a better fix would to move the setup and shutdown code into t/lib/Test/Framework.pm and let every test to create a temporary randomly-named directory and perform the setup, the test, and the shutdown code there.