Previous Topic Next topic Print topic


Tutorial: Running Unit Tests in the IDE

This tutorial utilizes the native AirportDemo sample that is supplied with Enterprise Developer. AirportDemo has been structured in a way that is best suited to work with the Micro Focus Unit Testing Framework in the IDE.

The solution has separated out the user interface code and the main application logic into two separate projects. You will also add a unit test library project to the solution during the tutorial.

The application logic is stored in a link library project, which is required to allow the test cases in the unit testing project to call into it and perform tests.

During the tutorial, you will create a test case that directly runs one of the functions of the demo (calculating the distance between two airports), and code some test assertions that check for the correct answer.

You will also learn how to integrate Code Coverage functionality into your test runs.

Previous Topic Next topic Print topic