# New Ticket Created by mt1957 # Please include the string: [perl #128098] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=128098 >
Hi, Since I found the Test module in the rakudo project I file the bug here. When the diag() sub is called before any tests are done the message will not be printed when prove is run without the verbose option. Small test file; use v6.c; use Test; diag 'test message'; ok True, 'ok'; done-testing; Test command with verbose on > prove -e perl6 -v Tests.t Tests.t .. # test message ok 1 - ok 1..1 ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.24 cusr 0.02 csys = 0.28 CPU)Result: PASS Test command with verbose off > prove -e perl6 Tests.t Tests.t .. ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.27 cusr 0.02 csys = 0.31 CPU) Result: PASS Adding a test before the diag line like another "ok True, 'ok';" and test again with verbose off > prove -e perl6 Tests.t Tests.t .. 1/? # test message Tests.t .. ok All tests successful. Files=1, Tests=2, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.29 cusr 0.03 csys = 0.34 CPU) Result: PASS This is Rakudo version 2016.04-7-g331e79f built on MoarVM version 2016.04 implementing Perl 6.c. Greetings, Marcel
