Days9 Hatena syntax

Today I checkout ec6b3a9.
This commit has test code! yeah.
$ prove -lvr t/
t/00_compile.t ..
1..1
not ok 1 – use App::AdventCalendar;

#   Failed test ‘use App::AdventCalendar;’
#   at t/00_compile.t line 4.
#     Tried to use ‘App::AdventCalendar’.
#     Error:  Can’t locate Text/Xatena.pm in @INC (@INC contains: /home/sane/work/p5-app-adventcalendar/lib /home/sane/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/x86_64-linux /home/sane/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2 /home/sane/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2/x86_64-linux /home/sane/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2 .) at /home/sane/work/p5-app-adventcalendar/lib/App/AdventCalendar.pm line 11.
# BEGIN failed–compilation aborted at /home/sane/work/p5-app-adventcalendar/lib/App/AdventCalendar.pm line 11.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed–compilation aborted at (eval 4) line 2.
# Looks like you failed 1 test of 1.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/01_path.t ….. Can’t locate Text/Xatena.pm in @INC (@INC contains: /home/sane/work/p5-app-adventcalendar/lib /home/sane/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/x86_64-linux /home/sane/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2 /home/sane/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2/x86_64-linux /home/sane/perl5/perlbrew/perls/perl-5.12.2/lib/5.12.2 .) at /home/sane/work/p5-app-adventcalendar/lib/App/AdventCalendar.pm line 11.
BEGIN failed–compilation aborted at /home/sane/work/p5-app-adventcalendar/lib/App/AdventCalendar.pm line 11.
Compilation failed in require at t/01_path.t line 4.
BEGIN failed–compilation aborted at t/01_path.t line 4.
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run

Test Summary Report
——————-
t/00_compile.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test:  1
Non-zero exit status: 1
t/01_path.t   (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=2, Tests=1,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.10 cusr  0.01 csys =  0.14 CPU)
Result: FAIL

Oops.
$ cpanm Text::Xatena
Many modules are installed.
$ prove -lvr t/
t/00_compile.t ..
1..1
ok 1 – use App::AdventCalendar;
ok
t/01_path.t …..
ok 1 – success case for list
ok 2 – success case for entry
ok 3 – entry file not found
ok 4 – data folder not found
ok 5 – invalid year format
ok 6 – invalid calendar name
1..6
ok
All tests successful.
Files=2, Tests=7,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.19 cusr  0.03 csys =  0.25 CPU)
Result: PASS
Ok! This has routing test. I access individual entry.
Sample page comes! w00t!
I’ll follow entry below.

Days9 Hatena syntax” への1件のフィードバック

コメントを残す

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください