Running tests in the IBM App Connect Enterprise Toolkit

You can run the unit tests from the IBM® App Connect Enterprise Toolkit by running the test project.

Before you begin

Read the following topics:

About this task

You can run unit tests by running their test project in the IBM App Connect Enterprise Toolkit.

Procedure

  1. In the Application Development view of the IBM App Connect Enterprise Toolkit, right-click the test project and then click Run test project:
    Figure 1. Running a test project in the Toolkit.
    This diagram shows the Run Test Project option in the test project's context menu.
  2. When the test project is run, a BAR file is generated. This BAR file is automatically deployed to an integration server, which starts with the --test-project argument. The BAR file automatically includes any applications that are referenced by the test project.

    By default, the tests are run on a temporary integration server, but you can configure an alternative integration server by following the steps in Configuring an integration server to run the test case.

    The BAR file that is generated is stored in the GeneratedBarFiles folder. For example: /GeneratedBarFiles/MyApplication_IntegrationTestproject.generated.bar

  3. You can view the test results by switching to the JUnit view in the Toolkit. The test results are displayed in the JUnit results panel.
    Figure 2. Unit test results in the JUnit view.
    This diagram shows test results displayed in the JUnit view of the IBM App Connect Enterprise Toolkit.
  4. You can see the output from the integration server console by switching to the Console view.
    Figure 3. Integration server output in the Console view.
    This diagram shows the output of the integration server console in the Console view.