I have the following dir structure (simplified version to reproduce the issue):
testing/
lib/
CLI.pm6
t/
01-test.t
You can check the source here. The problem is that if you run raku -Ilib t/01-test.t you will get the following output:
ok 1 - show help message
1..1
ok 1 - no arguments provided
not ok 1 - long version
# Failed test 'long version'
# at site#sources\D2E3739A3B53AD1F7CFEE6DA262613FD174A0BC9 (Test::Output) line 84
# expected a match with: /Documentable\sversion/
# got: "version\r\n"
1..1
# You failed 1 test of 1
not ok 2 - version command
# Failed test 'version command'
# at t\01-test.t line 12
1..2
# You failed 1 test of 2
Execute "documentable --help" for more information.
Everything seems normal (obviously tests are failing). The problem is the last line:
Execute "documentable --help" for more information.
That line is added by CLI::MAIN(), but is not executed after the tests have finished. You can even comment the first subtest block and it will still appear. This is causing a failed execution of the tests using prove6 -l. Any idea what's going on?