mtt
NAME
mtt - A command-line script for performing unit testing on a plugin.
SYNOPSIS
mtt [options] [test_dir]
Options: --mt home directory of MT software --config -c absolute path to MT config --env -E create temporary MT test environment --lang -L language code to use in temp environment --charset -C charset to use in temp environment --verbose -v verbose test output --help brief help message --man full documentation
DESCRIPTION
Movable Type Test or mtt is a command-line script that will run all the
test scripts (files with a .t extension) and then report the
results. This script is part of MT::Test, a testing framework
for Movable Type.
SETUP TIPS
You should set the MT_HOME and MT_CONFIG and environmental values to
avoid some typing. The can be overriden by switches such as
--mt or --config.
setenv MT_HOME=/path/to/mt
Create an alias to the mtt test script.
alias mtt=/path/to/mt/tools/mtt
REQUIREMENTS
The mtt script requires MT::Tool. It also
requires the following Perl modules:
- Test::Harness
- DirHandle
- File::Spec
- Cwd
- File::Basename
- Getopt::Long
- Pod::Usage
TO DO
- print MT version, home and config in use for run
- debug mode prints environment being used, temp db and cfg name if any
- params for specific/additional plugins and libs?
