/
Configuring Jobs for Unit Testing

Configuring Jobs for Unit Testing

MettleCI's powerful Unit Test capability allows developer to conduct unit testing using authored, captured, or fabricated data without having to alter your DataStage job design.  Unit Tests are created, maintained, and monitored using the MettleCI Workbench.  Unit Tests are executed using the Windows-based DataStage Designer or browser-based DataStage Flow Designer.

In order to use the Unit Test Feature, you’ll need to add an Environment Variable to each DataStage job for which you wish to use automated unit testing

Enabling Unit Testing for a Job:

If you are unable to complete these steps because the $DM_ENABLE_UNIT_TESTING environment variable is not present, please follow these instructions to enable MettleCI Unit Testing for an existing DataStage project.

  1. In DataStage Designer, open the job you wish to enable unit testing for and open the Job Properties dialog:

     

  2. Open the “Parameters” tab and click “Add Environment Variable…”:

     

  3. Add “$DM_ENABLE_UNIT_TESTING” from the “MettleCI” section:

     

  4. Save the job. You will now be able to choose the Unit Testing Configuration when executing your job:

     

 

 

Related content

Installing or Upgrading the Server Job Unit Test Harness
Installing or Upgrading the Server Job Unit Test Harness
Read with this
Installing or Upgrading the Parallel Job Unit Test Harness on Windows
Installing or Upgrading the Parallel Job Unit Test Harness on Windows
More like this
Installing MettleCI Unit Test Harness
Installing MettleCI Unit Test Harness
Read with this
Installing or Upgrading the Parallel Job Unit Test Harness on Unix
Installing or Upgrading the Parallel Job Unit Test Harness on Unix
Read with this
Installing or Upgrading Workbench on Unix
Installing or Upgrading Workbench on Unix
Read with this
Creating a Local Compliance Rule Git Repository
Creating a Local Compliance Rule Git Repository
Read with this

© 2015-2024 Data Migrators Pty Ltd.