Skip Menu |

This queue is for tickets about the File-BOM CPAN distribution.

Report information
The Basics
Id: 119068
Status: open
Priority: 0/
Queue: File-BOM

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.15
Fixed in: (no value)



Subject: Tests may fail on parallel testing
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.
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.
On 2019-02-06 14:41:44, ppisar wrote: Show quoted text
> 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:
Your suggested testrules.yml is included in version 0.18 so this problem should be fixed now. Tom