Dist::Zilla Sorry Today

Well seven more sisters to have a look at in today Dist-Pen

The plug-ins for today are

A 'Release' test case that implements Test::Fixme. Well if you are the sort of programmer who loves to make comments like this

# FIXME – Replace this with a fractal algorithm

This this plug-in is for you. If you do use the many features of Test::Fixme then this would be a good way for you to integrate that test case into your distribution as it is placed in the 'xt' dir. Myself I have yet to use this style of programming os not for me right now.
A 'Module' test case for once. This plug-in enables the Test:Inline module and if you are so inclined to incorporate you tests in you POD like this

=begin testing
is(Database::Accessor::Element->aggregate()', "Avg”,'aggregate default is Avg' );
=end testing

So if your disposed to write you code in this way this is a plug-in for you. Well I don't code that way so not for me.

The extended version of the 'Release' test case Dist::Zilla::Plugin::Test::Kwalitee which I already have in my '.ini'. For now I will just leave it out.

A 'Release' test that will implements 'Test::Legal' which ensures you have copyright, author and license files all in order. A nice one that roots though your code and tells you if you left out any of the above. I am going to give this one a try though I know my license stuff and author stuff are taken care of my some of my plug-in as right now I am not 100% sure I have a copyright notice on all my files.

After about 4 attempts to install the base Modules Test::Legal with
CPAN I finally gave that a miss and just did a manual build and install with MakeFile.PL and make install. It did finally go in after a few mins of other required installs. Finally it ended and I added in

strict = 1

to my '.ini' file and gave it a go with 'dzil xtest release/t' so only that test case will run and I got;

xt/release/test-legal.t .. Semicolon seems to be missing at xt/release/test-legal.t line 9.
syntax error at xt/release/test-legal.t line 10, near "$@

Bareword "license_ok" not allowed while "strict subs" in use at xt/release/test-legal.t line 7.
Execution of xt/release/test-legal.t aborted due to compilation errors.
xt/release/test-legal.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run

Test Summary Report
xt/release/test-legal.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=2, Tests=17, 2 wallclock secs ( 0.06 usr 0.01 sys + 2.13 cusr 0.13 csys = 2.33 CPU)
Result: FAIL

So the test case code itself if failing. A quick look at the srouce and there is the culprit

plan skip_all => 'Test::Legal required for testing licenses'
  if $@

need a ';' at the end there. Oh well not time to day to look in deeper onto something else;

A “Release' test case that will come in very handy if I want to ensure that my code will run on perl X,Y, Z Q and ₼ by utilizing Perlbrew. Well don't see my self doing that any time soon so off the the next on

Well no need to even go to the CPAN entry of this one. It just intergates tests for Map::Tube not what I am doing at all

The last one for today in a 'Release' test case for Test::MinimumVersion a
quick way to discover what is the oldest perl your code can take. May be useful if my Database::Accessor ever becomes popular with many plug-ins and extensions. But not for today.

Well not the best day here in the Dist-Pen the only Test plug-in I like would not run for me. Maybe I will have better luck with the next sever sisters.


Leave a comment

About byterock

user-pic Long time Perl guy, a few CPAN mods allot of work on DBD::Oracle and a few YAPC presentations