鈍足ランナーのIT日記

走るのが好きな5流のITエンジニアのブログ。

趣味の範囲は広いけど、どれも中途半端なクソブロガー楽しめるWebアプリを作ってあっと言わせたい。サーバーサイドPerl(Mojolicious)、クライアントサイドVue.js。Arduinoにも触手を伸ばす予定。

cygwinでMinillaを使ってみた。追加したテストがminil testで動作していないような感じ→恥ずかしい自己解決

minil new Yapc
vi lib/Yapc.pm

---追加---
sub hoge {
return "test";
}
---

vi t/yapc.t

I added this code 
---
use strict;
use Test::More;
use Yapc;

is(Yapc::hoge(), "test", "test No.1");

done_testing;
---

proveでのテストは通る。
I tested under prove command, this one is ok.

$ prove -Ilib
t/00_compile.t .. ok
t/yapc.t ........ ok
All tests successful.
Files=2, Tests=2,  1 wallclock secs ( 0.02 usr  0.06 sys +  0.18 cusr  0.05 csys =  0.31 CPU)
Result: PASS


minil test

$ minil test
Creating working directory: /home/tetsuya/Yapc/.build/S9MAYYmL
cp Build.PL /home/tetsuya/Yapc/.build/S9MAYYmL/Build.PL
cp Changes /home/tetsuya/Yapc/.build/S9MAYYmL/Changes
cp LICENSE /home/tetsuya/Yapc/.build/S9MAYYmL/LICENSE
cp META.json /home/tetsuya/Yapc/.build/S9MAYYmL/META.json
cp README.md /home/tetsuya/Yapc/.build/S9MAYYmL/README.md
cp cpanfile /home/tetsuya/Yapc/.build/S9MAYYmL/cpanfile
cp lib/Yapc.pm /home/tetsuya/Yapc/.build/S9MAYYmL/lib/Yapc.pm
cp t/00_compile.t /home/tetsuya/Yapc/.build/S9MAYYmL/t/00_compile.t
Building /home/tetsuya/Yapc/.build/S9MAYYmL
Detecting project name from directory name.
Retrieving meta data from lib/Yapc.pm.
Name: Yapc
Abstract: It's new $module
Version: 0.01
fatal: bad default revision 'HEAD'
Writing MANIFEST file
Writing release tests: xt/minimum_version.t
Writing release tests: xt/cpan_meta.t
Writing release tests: xt/pod.t
Writing release tests: xt/spelling.t
[S9MAYYmL] $ /usr/bin/perl -I/usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int -I/usr/lib/perl5/vendor_perl/5.14 -I/usr/lib/perl5/site_perl/5.10 -I/usr/lib/perl5/vendor_perl/5.10 -I/usr/lib/perl5/site_perl/5.8 -I. Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Yapc' version '0.01'
Merging cpanfile prereqs to MYMETA.yml
Merging cpanfile prereqs to MYMETA.json
[S9MAYYmL] $ /usr/bin/perl -I/usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int -I/usr/lib/perl5/vendor_perl/5.14 -I/usr/lib/perl5/site_perl/5.10 -I/usr/lib/perl5/vendor_perl/5.10 -I/usr/lib/perl5/site_perl/5.8 -I. Build build
Building Yapc
Build: blib/lib/Yapc.pm: unknown pod directive 'encoding' in paragraph 5.  ignoring.
[S9MAYYmL] $ /usr/bin/perl -I/usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int -I/usr/lib/perl5/vendor_perl/5.14 -I/usr/lib/perl5/site_perl/5.10 -I/usr/lib/perl5/vendor_perl/5.10 -I/usr/lib/perl5/site_perl/5.8 -I. Build build
Building Yapc
[S9MAYYmL] $ /usr/bin/perl -I/usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int -I/usr/lib/perl5/vendor_perl/5.14 -I/usr/lib/perl5/site_perl/5.10 -I/usr/lib/perl5/vendor_perl/5.10 -I/usr/lib/perl5/site_perl/5.8 -I. Build test
t/00_compile.t ........ ok
xt/cpan_meta.t ........ skipped: Test::CPAN::Meta required for testing META.yml
xt/minimum_version.t .. skipped: Test::MinimumVersion required for testing perl minimum version
xt/pod.t .............. ok
xt/spelling.t ......... skipped: Test::Spellunker is not installed.
All tests successful.
Files=5, Tests=2,  0 wallclock secs ( 0.06 usr  0.03 sys +  0.68 cusr  0.21 csys =  0.99 CPU)
Result: PASS
Removing /home/tetsuya/Yapc/.build/S9MAYYmL

But I executed minil test command. Added test yapc.t is not executed. How to execute added tests?

追加したテストyapc.tが実行されていないような感じ。 手順的には間違っていないとおもうんだけど、如何すればいいのか調べよう。 cygwin固有なんだろうなぁ。

<<追記>> 自己解決 git add t/yapc.tが必要だったみたいです。