diff --git a/.travis.yml b/.travis.yml index 1444dd8..1c61488 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,15 @@ perl: - "5.14" - "5.12" - "5.10" -before_install: - cpanm -n Devel::Cover && - cpanm -n Devel::Cover::Report::Coveralls + +install: + - export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=c HARNESS_TIMER=1 + - cpanm --quiet --notest Devel::Cover::Report::Coveralls + - cpanm --quiet --notest --installdeps --with-develop . + script: - perl Build.PL && ./Build build && cover -test -report coveralls + - PERL5OPT=-MDevel::Cover='-coverage,statement,branch,condition,path,subroutine,+ignore,bin/prove\b,t/author' prove -lrsv t + - cover + +after_success: + - cover -report coveralls diff --git a/Changes b/Changes index 2bbf25a..71a1697 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for Mojolicious-Plugin-Form. {{$NEXT}} + - improve tests 0.007 2015-04-28 17:00:16 CEST - improve coverage diff --git a/LICENSE b/LICENSE index bc99d23..feaf1ce 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -This software is copyright (c) 2013-2014 by Helmut Wollmersdorfer, . +This software is copyright (c) 2013-2015 by Helmut Wollmersdorfer, . This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -12,7 +12,7 @@ b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2013-2014 by Helmut Wollmersdorfer, . +This software is Copyright (c) 2013-2015 by Helmut Wollmersdorfer, . This is free software, licensed under: @@ -272,7 +272,7 @@ That's all there is to it! --- The Artistic License 1.0 --- -This software is Copyright (c) 2013-2014 by Helmut Wollmersdorfer, . +This software is Copyright (c) 2013-2015 by Helmut Wollmersdorfer, . This is free software, licensed under: diff --git a/META.json b/META.json index c01cc00..1be3108 100644 --- a/META.json +++ b/META.json @@ -48,7 +48,7 @@ } } }, - "release_status" : "testing", + "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/wollmers/Mojolicious-Plugin-Form/issues" diff --git a/README.md b/README.md index 323269c..4c824a8 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ Mojolicious::Plugin::Form - abstract forms for Mojolicious and DBIx::Class
- Mojolicious-Plugin-Form Coverage Status Kwalitee Score @@ -31,13 +30,12 @@ Mojolicious::Plugin::Form - abstract forms for Mojolicious and DBIx::Class Helmut Wollmersdorfer,
- Kwalitee Score
# COPYRIGHT AND LICENSE -Copyright (C) 2013-2014 by Helmut Wollmersdorfer +Copyright (C) 2013-2015 by Helmut Wollmersdorfer This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff --git a/lib/Mojolicious/Plugin/Form.pm b/lib/Mojolicious/Plugin/Form.pm index d670ff5..2b3ba18 100755 --- a/lib/Mojolicious/Plugin/Form.pm +++ b/lib/Mojolicious/Plugin/Form.pm @@ -48,12 +48,14 @@ __END__ Mojolicious::Plugin::Form - abstract forms for Mojolicious and DBIx::Class -=for html +=begin html + Mojolicious-Plugin-Form Coverage Status Kwalitee Score CPAN version +=end html =head1 SYNOPSIS @@ -83,12 +85,15 @@ L Helmut Wollmersdorfer, Ehelmut.wollmersdorfer@gmail.comE -=for html +=begin html + Kwalitee Score +=end html + =head1 COPYRIGHT AND LICENSE -Copyright (C) 2013-2014 by Helmut Wollmersdorfer +Copyright (C) 2013-2015 by Helmut Wollmersdorfer This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff --git a/t/author-pod-spelling-mistakes.t b/t/author-pod-spelling-mistakes.t new file mode 100755 index 0000000..1f9868a --- /dev/null +++ b/t/author-pod-spelling-mistakes.t @@ -0,0 +1,19 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for author testing'); + } +} + +use Test::More; + +eval "use Test::Pod::Spelling::CommonMistakes"; +if ( $@ ) { + plan skip_all => 'Test::Pod::Spelling::CommonMistakes required for testing POD'; +} +else { + all_pod_files_ok(); +} + diff --git a/t/author-pod-spelling.t b/t/author-pod-spelling.t new file mode 100644 index 0000000..0efd8a0 --- /dev/null +++ b/t/author-pod-spelling.t @@ -0,0 +1,28 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for author testing'); + } +} + +use Test::More; + +eval "use Test::Spelling"; +if ( $@ ) { + plan skip_all => 'Test::Spelling required for testing POD'; +} +else { + add_stopwords(qw( + AproJo + Helmut + Mojolicious + Wollmersdorfer + jQuery + websockets + )); + all_pod_files_spelling_ok(); +} + + diff --git a/t/lib/MyApp.pm b/t/lib/MyApp.pm index 4f5ef91..112a865 100644 --- a/t/lib/MyApp.pm +++ b/t/lib/MyApp.pm @@ -43,32 +43,26 @@ sub class { return $self->entries->{$source}; }; -package MySchema::Class { - use Mojo::Base -base; +package MySchema::Class; +use Mojo::Base -base; - has 'table'; - 1; -} +has 'table'; -package MyApp::Form { - use Mojo::Base 'Mojolicious::Plugin::Form::Base'; - 1; -} -package MyApp::Form::Foo { - use Mojo::Base 'MyApp::Form'; - 1; -} +package MyApp::Form; +use Mojo::Base 'Mojolicious::Plugin::Form::Base'; -package MyApp::Form::Bar { - use Mojo::Base 'MyApp::Form'; - 1; -} -package MyApp::Form::Defect { - use Mojo::Base 'MyApp::Form'; +package MyApp::Form::Foo; +use Mojo::Base 'MyApp::Form'; + + +package MyApp::Form::Bar; +use Mojo::Base 'MyApp::Form'; + + +package MyApp::Form::Defect; +use Mojo::Base 'MyApp::Form'; - 0; # TODO -} 1;