Run Unit Tests

On running a test script you generate test results that are stored as Test Cases against the Classes being tested.

Access    Analyzer | Test | Run Test Script

Topics

Topic

Detail

See also

Run Tests

Select the appropriate package in the Project Browser.

Select the Run Test Script option to run the test script you previously set up for that package, in the Execution Analyzer.

 

Set Up Unit Testing

Add Testing Command

View Results

The results of xUnit tests are displayed in the Output window, identifying which tests have run and which of these have failed.

The results also show which method failed and the file and line number the failure occurred at.

Double-click on an error message; Enterprise Architect opens the editor to that line of code, enabling you to quickly find and fix the error.

Enterprise Architect also records the run status of each test against the Class being tested; these are stored in the element Test Cases.

A diagram containing the Class can be set to display these Test Cases, by exposing the test scripts compartment on the diagram elements.

 

Record Test Results

Show Test Scripts Compartment

Learning Center topics

(Alt+F1) | Enterprise Architect | Execution Analysis | Run Unit Tests