Skip to content

Transforms piped TAP to Codewars output

License

Notifications You must be signed in to change notification settings

codewars/raku-tap2codewars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raku-tap2codewars

Transforms piped TAP to Codewars output.

Usage

# Redirect diagnostics from stderr to stdout
$ raku 2>&1 t/example.t | tap2codewars
raku 2>&1 <<TEST | tap2codewars
use v6;
use Test;

is(1 - 1, 2, "intentional failure");

subtest 'tests', {
  is(1 - 1, 2, "another failure");
}

done-testing;
TEST
<IT::>intentional failure

<FAILED::>expected: '2'<:LF:>     got: '0'

<COMPLETEDIN::>

<DESCRIBE::>tests

<IT::>another failure

<FAILED::>expected: '2'<:LF:>     got: '0'

<COMPLETEDIN::>

<COMPLETEDIN::>