NAME
generate_perl_test_skeleton - Do what the name says
USAGE
generate_perl_test_skeleton -p Foo::Bar -t t/Foo/Bar.t [-s]
EXAMPLE
# generate the test file ./t/Foo/Bar.t that tests module Foo::Bar:
generate_perl_test_skeleton -p Foo::Bar -t t/Foo/Bar.t
# same thing, but use the path to the package instead of its name:
generate_perl_test_skeleton -p ./lib/Foo/Bar.pm -t t/Foo/Bar.t
DESCRIPTION
This script will generate a skeleton test file for a perl module. You have to provide a command line paramter -t whose values designates the file name of the test file you want to create or update and a parameter -p whose value takes either a perl package name or the path to a perl module.
REQUIRED ARGUMENTS
- --test-file
-
Path to the test file to be generated/updated.
- --package
-
Path or name of the module you want to test.
OPTIONS
- --debug
-
Enable debugging.
- --skip-private-methods
-
Ignore methods/functions in your perl package that start with an underscore.
SEE ALSO
Test::Skeleton::Generator - the perl module that powers this script
https://github.com/mannih/vim-perl-testing is a vim plugin that was created to be used with something like generate_perl_test_skeleton.
LICENSE
Copyright (C) Manni Heumann.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Manni Heumann <github@lxxi.org>