bobby_tables2.pl
version v4.1.1
It assumes you to have or to create a new perl distribution with standard folder structure. Minimally, it should have a lib and t folders. For a new distribution, create one with module-starter.
module-starter --module=TestChado::WithMakeFile --author="Siddhartha Basu" --email=sidd.basu@gmail.com rbenv:system Added to MANIFEST: Changes Added to MANIFEST: ignore.txt Added to MANIFEST: lib/TestChado/WithMakeFile.pm Added to MANIFEST: Makefile.PL Added to MANIFEST: MANIFEST Added to MANIFEST: README Added to MANIFEST: t/00-load.t Added to MANIFEST: t/boilerplate.t Added to MANIFEST: t/manifest.t Added to MANIFEST: t/pod-coverage.t Added to MANIFEST: t/pod.t Created starter directories and files
The distribution will look like the following ...
TestChado-WithMakeFile |-- Changes |--ignore.txt |-- lib | |-- TestChado │ |-- WithMakeFile.pm |-- Makefile.PL |-- MANIFEST |-- README |-- t |-- 00-load.t |-- boilerplate.t |-- manifest.t |-- pod-coverage.t |-- pod.t
Create or edit an existing Makefile and add the Test::Chado dependency.
use strict; use warnings; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'TestChado::WithMakeFile', AUTHOR => q{Siddhartha Basu <sidd.basu@gmail.com>}, VERSION_FROM => 'lib/TestChado/WithMakeFile.pm', ABSTRACT_FROM => 'lib/TestChado/WithMakeFile.pm', ($ExtUtils::MakeMaker::VERSION >= 6.3002 ? ('LICENSE'=> 'perl') : ()), PL_FILES => {}, PREREQ_PM => { 'Test::Chado' => '1.0.0' }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'TestChado-WithMakeFile-*' }, );
Install dependencies using cpanm or any other standard installer
cpanm --installdeps .
Then write your tests in t/ folder as usual run it with make
perl Makefile.PL && make test
Create or edit an existing Build.PL and add the Test::Chado dependency.
use strict; use warnings; use Module::Build; my %module_build_args = ( "configure_requires" => { "Module::Build" => "0.3601" }, "dist_abstract" => "Toy distribution with Build.PL", "dist_author" => [ "Siddhartha Basu <biosidd\@gmail.com>" ], "dist_name" => "TestChado-WithBuildPL", "dist_version" => "1.0.0", "license" => "perl", "module_name" => "TestChado::WithBuildPL", "requires" => { 'Test::Chado' => '1.0.0'} ); my $build = Module::Build->new(%module_build_args); $build->create_build_script;
Install dependencies with cpanm, write tests and run as usual
perl Build.PL && ./Build test
Siddhartha Basu <biosidd@gmail.com>
This software is copyright (c) 2011 by Siddhartha Basu.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '| '. Assuming UTF-8
To install Test::Chado, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Chado
CPAN shell
perl -MCPAN -e shell install Test::Chado
For more information on module installation, please visit the detailed CPAN module installation guide.