why following code executes tests check2.t file only?
#!/usr/bin/perl -w use strict; use warnings; use modern::perl; use tap::harness::junit; $harness = tap::harness::junit->new({ xmlfile => 'output.xml', namemangle => 'hudson', merge => 1 }); $harness->runtests(['check1.t', 'check2.t']);
actually, runs tests check1.t while calling check2.t. davorg pointed out, runtests expects list of tests, not arrayref of tests. reason why appears work runtests allows test entry in form [ 'filename', 'comment' ], filename name of test file, , comment string display. (this documented in base class, tap::harness.)
Comments
Post a Comment