[Koha-bugs] [Bug 18979] Speed up 'valid-templates.t' tests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 16 07:48:09 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18979

--- Comment #13 from Mason James <mtj at kohaaloha.com> ---
(In reply to Marcel de Rooy from comment #12)
> (In reply to Mason James from comment #10)
> > a little update here...
> > it turns out that the 'use threads' line was needed for patch to succeed,
> > after all
> > 
> > the 'use threads' line seems to handle a known bug where Test::Simple
> > generates the TAP tests out of order, and causes the tests to fail
> > 
> > 
> > the good news is that there are some options...
> > 
> > 1/ use the Test2::Suite module, which handles parallel tests well...
> >    https://metacpan.org/pod/Test2::Suite
> > 
> >    the only catch here is that it's new-ish, so we'll need to backport the
> > module to deb8/jessie too
> > 
> > 2/ just allow the 'use threads' line. 
> > 	Because no threads are ever actually created, it should be pretty safe
> >    
> > 
> > fyi: i did try using forks.pm too, but sadly got lots of random fails
> 
> Mason,
> Which option has your preference ?
> 
> Marcel

hiya, i'd vote for option 1/ as quick fix, and then a separate bug for a
leisurely switch to Test2::Suite

anyone else have an opinion?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list