DescriptionReplace jitsu test with juju-test.
This branch makes juju-test the default test runner
for both the unit tests and the charm functional tests.
The charm test suite now supports both pyJuju and juju-core.
The tests dependencies are now installed in a virtualenv that
is automatically created and updated by the first test
executable (00-setup). This way we don't require the user
to install all the packages, and, moreover, we make the tests
ready to be run in the charm testing infrastructure.
When the charm is deployed during tests, a temporary repository
is created where the charm is copied and then deployed.
This way we achieve two important goals:
- the developer is not forced to manually set up a local
Juju repository where to branch the Juju GUI;
- the charm can be deployed even if it contains a virtualenv, i.e.
a directory with absolute symlinks (that's because the .venv dir
is not copied in the temp repo).
The tests/helpers.py and tests/deploy.py files will be eventually
replaced by similar tools provided by the juju testing harness.
Updated the documentation where required.
Fixed unit tests exit code.
Common commands (test/lint/clean etc.) can now be easily run
using make.
Nice to have, not included in this branch:
- collect deployment test logs;
- reintroduce a way to test the charm specifying a
different juju-gui-source;
- do not require the branch to be named "juju-gui".
PS: sorry for the diff, well over 1k loc :-/
https://code.launchpad.net/~frankban/charms/precise/juju-gui/use-juju-test/+merge/168079
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 24
Patch Set 2 : Replace jitsu test with juju-test. #Patch Set 3 : Replace jitsu test with juju-test. #
MessagesTotal messages: 9
|