Skip to content

Commit 418e4b0

Browse files
committed
cpanfile: add Test2-Harness and JUnit formatter
These allow testing with yath, which is a big step up from prove. The JUnit formatter means that a JUnit XML file can be spit out from tests, which can be processed by (for example) mikepenz/action-junit-report, to get nicely formatted test reports in the GitHub UI.
1 parent 6f03802 commit 418e4b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpanfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,14 @@ if ( "$]" >= 5.010 ) {
5252
requires 'Devel::Cover::Report::Codecov';
5353
requires 'Devel::Cover::Report::Coveralls';
5454
requires 'Minilla';
55+
requires 'Test2::Harness';
5556
requires 'Test::Vars';
5657
}
5758

59+
if ( "$]" >= 5.010001 ) {
60+
requires 'Test2::Harness::Renderer::JUnit';
61+
}
62+
5863
if ( "$]" >= 5.012 ) {
5964
requires 'Code::TidyAll::Plugin::SortLines::Naturally';
6065
requires 'Code::TidyAll::Plugin::Test::Vars';

0 commit comments

Comments
 (0)