Integration testing¶
See also: Write an integration test
Integration testing juju currently relies on a series of custom-made bash scripts. All these scripts live
in the tests directory. This directory includes two subdirectories, one containing
integration test suites and the other integration test includes. Both are tools that can help you create
integration tests.
A typical integration testing package consists of:
A
<suite name>directory in thetests/suitesdirectory.Inside this directory, a main script for the integration test suite,
task.sh. This is the entrypoint to your integration test suite.In the same directory, a separate
<test name>.shfile for every test.The
tests/main.shtest script, which is the entrypoint to your integration testing. This file contains aTEST_NAMESvariable which contains the names of all your integration test suites. Whenever you develop a new integration test suites, you need to add its name to this variable.