Skip to content

Instantly share code, notes, and snippets.

@2shortplanks
Created January 5, 2017 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2shortplanks/a29738c28e2df87d1d787b789322469a to your computer and use it in GitHub Desktop.
Save 2shortplanks/a29738c28e2df87d1d787b789322469a to your computer and use it in GitHub Desktop.
Mark@travis:~/co/Test2-Harness-Renderer-TeamCity$ cat t/test-data/basic/simple-fail/input.st
use strict;
use warnings;
use Test::More;
ok 0, 'simple-fail-msg';
done_testing;
Mark@travis:~/co/Test2-Harness-Renderer-TeamCity$ cat TeamCitySerial t/test-data/basic/simple-fail/expected.txt
cat: TeamCitySerial: No such file or directory
##teamcity[testSuiteStarted flowId='t/test-data/basic/simple-fail/input.st' name='t/test-data/basic/simple-fail/input.st']
##teamcity[testStarted flowId='t/test-data/basic/simple-fail/input.st' name='simple-fail-msg']
##teamcity[testFailed details=' Failed test |'simple-fail-msg|'|n at t/test-data/basic/simple-fail/input.st line 6.' flowId='t/test-data/basic/simple-fail/input.st' message='not ok' name='simple-fail-msg']
##teamcity[testFinished flowId='t/test-data/basic/simple-fail/input.st' name='simple-fail-msg']
##teamcity[testSuiteFinished flowId='t/test-data/basic/simple-fail/input.st' name='t/test-data/basic/simple-fail/input.st']
Mark@travis:~/co/Test2-Harness-Renderer-TeamCity$ yath -Ilib -q -R TeamCitySerial t/test-data/basic/simple-fail/input.st
##teamcity[testSuiteStarted flowId='1' name='t/test-data/basic/simple-fail/input.st' timestamp='2017-01-05T19:43:14.996']
##teamcity[testStarted flowid='1' name='simple-fail-msg' timestamp='2017-01-05T19:43:15.058']
##teamcity[testFailed flowid='1' timestamp='2017-01-05T19:43:15.058']
##teamcity[testFinished flowid='1' name='simple-fail-msg' timestamp='2017-01-05T19:43:15.058']
##teamcity[message status='NORMAL' text=' Failed test |'simple-fail-msg|'|n at t/test-data/basic/simple-fail/input.st line 6.|nLooks like you failed 1 test of 1.' timestamp='2017-01-05T19:43:15.058']
##teamcity[testSuiteFinished flowId='1' name='t/test-data/basic/simple-fail/input.st' timestamp='2017-01-05T19:43:15.058']
Mark@travis:~/co/Test2-Harness-Renderer-TeamCity$ yath -Ilib -q -R Raw t/test-data/basic/simple-fail/input.st
T2_FORMATTER: EventStream
1 T2_EVENT: {"__PACKAGE__":"Test2::Event::ProcessStart","file":"t/test-data/basic/simple-fail/input.st"}
1 T2_EVENT: {"__PACKAGE__":"Test2::Event::ParserSelect","parser_class":"Test2::Harness::Parser::TAP"}
1 T2_EVENT: {"message":"Selecting Test::Builder::Formatter.","__PACKAGE__":"Test2::Event::Note","nested":0}
1 T2_EVENT: {"effective_pass":0,"__PACKAGE__":"Test2::Event::Ok","nested":0,"pass":0,"name":"simple-fail-msg"}
1 T2_EVENT: {"message":" Failed test 'simple-fail-msg'\n at t/test-data/basic/simple-fail/input.st line 6.\nLooks like you failed 1 test of 1.","__PACKAGE__":"Test2::Event::Diag","nested":0}
1 T2_EVENT: {"nested":0,"max":1,"reason":null,"__PACKAGE__":"Test2::Event::Plan","directive":""}
1 T2_EVENT: {"result":null,"file":"t/test-data/basic/simple-fail/input.st","__PACKAGE__":"Test2::Event::ProcessFinish"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment