Skip to main content

Example: Executing the Test

After loading the production and the test class, you can execute the test using Terminal. Here's how to do this using the TestProduction Run method:

  1. Open Terminal and change to the namespace in which you installed the production and test classes.

  2. Assign ^UnitTestRoot to a either a valid directory or the empty string.

    ENSDEMO>Set ^UnitTestRoot="" 
  3. Execute the test

    ENSDEMO>Do ##class(Tutorial.ProductionTest).Run()

    Your output looks something like this

    generated description: testprod run 20141

Notice that the last line is a url. Use this url to view an HTML report on the test.

FeedbackOpens in a new tab