Skip to main content
Skip table of contents

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

BASH
$> mettleci unittest generate \
   -assets /opt/dm/mci/jobs \
   -joblist ./joblist.txt \
   -specs /opt/dm/mci/testspecs


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.