Skip to content

Instantly share code, notes, and snippets.

@2shortplanks
Created January 4, 2017 17:19
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/e3afc93469429e7eb61da9ee2bfa26c0 to your computer and use it in GitHub Desktop.
Save 2shortplanks/e3afc93469429e7eb61da9ee2bfa26c0 to your computer and use it in GitHub Desktop.
Mark@travis:/tmp$ perl foo.t
# Seeded srand with seed '20170104' from local date.
ok 1 - arse
1..1
Mark@travis:/tmp$ T2_FORMATTER=EventStream perl foo.t
T2_FORMATTER: EventStream
T2_EVENT: {"message":"Seeded srand with seed '20170104' from local date.","__PACKAGE__":"Test2::Event::Note","trace":{"__PACKAGE__":"Test2::Util::Trace","frame":["Test2::Plugin::SRand","/opt/markperl/lib/site_perl/5.22.0/Test2/Plugin/SRand.pm","59","SRAND"],"tid":0,"pid":92868}}
T2_ENCODING: utf8
T2_EVENT: {"effective_pass":1,"pass":1,"__PACKAGE__":"Test2::Event::Ok","trace":{"frame":["main","foo.t",5,"Test2::Tools::Basic::ok"],"__PACKAGE__":"Test2::Util::Trace","tid":0,"pid":92868},"name":"arse"}
T2_EVENT: {"max":1,"__PACKAGE__":"Test2::Event::Plan","trace":{"tid":0,"pid":92868,"frame":["main","foo.t",6,"Test2::Tools::Basic::done_testing"],"__PACKAGE__":"Test2::Util::Trace"},"directive":""}
Mark@travis:/tmp$ yath foo.t
[PASSED] = foo.t passed
=== ALL TESTS SUCCEEDED ===
Mark@travis:/tmp$ yath -R EventStream foo.t
[PASSED] = foo.t passed
[PASSED] = foo.t passed
=== ALL TESTS SUCCEEDED ===
=== ALL TESTS SUCCEEDED ===
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment