UnitTest Generate Command
Purpose
Generates a MettleCI Unit Test for one or more specified DataStage Jobs.
The optional -check-row-count-only flag will cause the generation of unit tests which check row counts, rather than the default option which is to compare data row-by-row.
Syntax
Syntax : unittest generate [options]
Description
-specs
Path to unit test specs directory
Required
-assets
Path to assets directory
Required
-joblist
File containing the list of jobs to create specs for (defaults to all jobs)
-check-row-count-only
If set, will generate row count tests rather than unit tests
Example
$> mettleci unittest generate \
-assets /opt/dm/mci/jobs \
-joblist ./joblist.txt \
-specs /opt/dm/mci/testspecs