UR::Namespace::Command::Test::Run3pm
Run one or more test scripts
Usage
# run everything in a given namespacecd my_sandbox/TheNamespaceur test run --recurse# run only selected testscd my_sandbox/TheNamespaceur test run My/Module.t Another/Module.t t/foo.t t/bar.t# run only tests which load the TheNamespace::DNA modulecd my_sandbox/TheNamespaceur test run --cover TheNamespace/DNA.pm# run only tests which cover the changes you have in Subversioncd my_sandbox/TheNamespaceur test run --cover-svn-changes# run 5 tests in parallel as jobs scheduled via LSFcd my_sandbox/TheNamespaceur test run --lsf --jobs 5
Overview
Runs a test harness around automated test cases, like "make test" in a make-oriented software distrbution, and similar to "prove" run in bulk.
When run w/o parameters, it looks for "t" directory in the current working directory, and runs ALL tests under that directory.
Options
-
--recurse -
Run all tests in the current directory, and in sub-directories. Without--recurse, it will first recursively search for directories named 't' underthe current directory, and then recursively seatch for *.t files under thosedirectories.
-
--long -
Include "long" tests, which are otherwise skipped in test harness execution
-
-v -
Be verbose, meaning that individual cases will appear instead of just a full-script summary
-
--cover My/Module.pm -
Looks in a special sqlite database which is updated by the cron which runs tests,to find all tests which load My/Module.pm at some point before they exit. Onlythese tests will be run.* you will still need the --long flag to run long tests.
* if you specify tests on the command-line, only tests in both lists will run
* this can be specified multiple times
-
--cover-TOOL-changes -
TOOL can be svn, svk, or cvs.The script will run either "svn status", "svk status", or "cvs -q up" on a parentdirectory with "GSC" in it, and get all of the changes in your perl_modules trunk.It will behave as though those modules were listed as individual --cover options.
-
--lsf -
Tests should not be run locally, instead they are submitted as jobs to theLSF cluster with bsub.
-
--lsf-params -
Parameters given to bsub when sceduling jobs. The default is"-q short -R select[type==LINUX64]"
-
--jobs <number> -
This many tests should be run in parallel. If --lsf is also specified, thenthese parallel tests will be submitted as LSF jobs.
Pending features
- automatic remote execution for tests requiring a distinct hardware platform
- logging profiling and coverage metrics with each test
Releases
6 releases since Debian 8 (Jessie); the text changed 4 times.