Testing projects

Testing is an important step in any projects lifecycle to verify that the recent changes are working as expected.

Before you begin

Only one project or subproject for an assembly can be tested.

About this task

The project test command runs the behavior scenarios that are included in the Behaviour/Tests subdirectory of any assembly project. It gathers the name of each scenario that is contained in the Behaviour/Tests subdirectory, and runs one by one in the TNCO environment by displaying progress in the console. The project test command also reports the final results of all behavior scenarios that are running in the console.

To ensure that the environment has the recent changes, LMCTL always runs a push before the tests. As a result, it is not necessary to explicitly run a build or push first.

Procedure

Go to the project directory and follow the steps to test the changes:

  1. Run the project test command with the target environment name from your LMCTL configuration file, and the Ansible® RM name:
    lmctl project test dev --armname defaultrm
    
  2. Monitor the progress of the tests in the console, or by opening the Behavior tab of your service design in the TNCO user interface.