Testing > Integration testing
See also: How to write a integration test
juju currently relies on a series of custom-made
bash scripts. All these scripts live in https://github.com/juju/juju/tree/develop/tests . This directory includes two subdirectories, one containing integration test suites and the other test includes. Both are tools that can help you create integration tests.
A typical integration testing package consists of:
<suite name>directory in the /tests/suites directory.
- 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 https://github.com/juju/juju/blob/develop/tests/main.sh , which is the entrypoint to your integration testing. This file contains a
TEST_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.