Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Developing/testing numerical Perl

by Anonymous Monk
on Nov 25, 2012 at 02:02 UTC ( #1005453=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is there any Perl helper, to help people start a module, which does things like:

#!/usr/bin/perl -w use strict; use diagnostics; BEGIN { $DB::single = 1; # Allows us to single step through testing # If you need to define functions from the module, do that with a # qw( ... ) after the quoted module name. use_ok( '$ModuleName' ) or die; } diag( "Testing $ModuleName $ModuleName::VERSION" ); =pod This is a stub test function, from which a person can build their monolithic module, and then split the module into pieces if need be. Put whatever code and data you are using to test this module as you develop it below. =cut my $Pi = 4 * atan2( 1, 1 ); # And whatever other constant a person might need.

And I propose a name of z99.t, so that it runs last.

But this idea is that the various helpers (to start projects for people), give them a template in ./t/ where they can develop their module via testing. This seems to be something that people who develop software professionally prefer, but doesn't seem to be present here. Maybe there is a better way?

Comment on Developing/testing numerical Perl
Download Code
Replies are listed 'Best First'.
Re: Developing/testing numerical Perl
by eyepopslikeamosquito (Chancellor) on Nov 25, 2012 at 05:13 UTC
Re: Developing/testing numerical Perl
by kcott (Abbot) on Nov 25, 2012 at 03:55 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1005453]
Approved by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (17)
As of 2015-07-30 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls