Skip to content

Instantly share code, notes, and snippets.

@syohex
Last active August 29, 2015 13:59
Show Gist options
  • Save syohex/10965821 to your computer and use it in GitHub Desktop.
Save syohex/10965821 to your computer and use it in GitHub Desktop.
Amon2::Lite test with Data::Section::Simple@0.05 and Data::Section::Simple@0.06
% prove -bv t/300_setup/04_lite.t
t/300_setup/04_lite.t ..
# /tmp/eFPNmtcAka
[t::TestFlavor] Loading asset: jQuery
[t::TestFlavor] Loading asset: Bootstrap
[t::TestFlavor] Loading asset: ES5Shim
[t::TestFlavor] Loading asset: MicroTemplateJS
[t::TestFlavor] Loading asset: StrftimeJS
[t::TestFlavor] Loading asset: SprintfJS
[t::TestFlavor] Loading asset: MicroLocationJS
[t::TestFlavor] Loading asset: MicroDispatcherJS
[t::TestFlavor] Loading asset: XSRFTokenJS
[Flavor::Lite] writing app.psgi
[Flavor::Lite] writing Makefile.PL
[Flavor::Lite] writing t/Util.pm
[Flavor::Lite] writing t/01_root.t
[Flavor::Lite] writing xt/03_pod.t
[Flavor::Lite] writing .gitignore
ok 1 - app.psgi exists
ok 2 - app.psgi is valid
t/01_root.t .. ok
All tests successful.
Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.08 cusr 0.01 csys = 0.11 CPU)
Result: PASS
ok 3
1..3
ok
All tests successful.
Files=1, Tests=3, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.29 cusr 0.03 csys = 0.34 CPU)
Result: PASS
% prove -bv t/300_setup/04_lite.t
t/300_setup/04_lite.t ..
# /tmp/WlYCZcPqNt
[t::TestFlavor] Loading asset: jQuery
[t::TestFlavor] Loading asset: Bootstrap
[t::TestFlavor] Loading asset: ES5Shim
[t::TestFlavor] Loading asset: MicroTemplateJS
[t::TestFlavor] Loading asset: StrftimeJS
[t::TestFlavor] Loading asset: SprintfJS
[t::TestFlavor] Loading asset: MicroLocationJS
[t::TestFlavor] Loading asset: MicroDispatcherJS
[t::TestFlavor] Loading asset: XSRFTokenJS
[Flavor::Lite] writing app.psgi
[Flavor::Lite] writing Makefile.PL
[Flavor::Lite] writing t/Util.pm
[Flavor::Lite] writing t/01_root.t
[Flavor::Lite] writing xt/03_pod.t
[Flavor::Lite] writing .gitignore
ok 1 - app.psgi exists
ok 2 - app.psgi is valid
# Failed test at t/01_root.t line 16.
# got: '500'
# expected: '200'
# Text::Xslate: LoadError: Cannot find 'index.tt' (path: /tmp/WlYCZcPqNt /tmp/WlYCZcPqNt/tmpl) at /home/syohei/.plenv/versions/5.18.2/lib/perl5/site_perl/5.18.2/Amon2/Web.pm line 191.
# Looks like you failed 1 test of 1.
t/01_root.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
Test Summary Report
-------------------
t/01_root.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.08 cusr 0.00 csys = 0.10 CPU)
Result: FAIL
not ok 3
# Failed test at t/TestFlavor.pm line 38.
1..3
# Looks like you failed 1 test of 3.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
Test Summary Report
-------------------
t/300_setup/04_lite.t (Wstat: 256 Tests: 3 Failed: 1)
Failed test: 3
Non-zero exit status: 1
Files=1, Tests=3, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.27 cusr 0.05 csys = 0.35 CPU)
Result: FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment