Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2452)

Issue 9874050: Replace jitsu test with juju-test.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by frankban
Modified:
10 years, 10 months ago
Reviewers:
bac, teknico, gary.poster, mp+168079
Visibility:
Public.

Description

Replace 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+898 lines, -185 lines) Patch
M .bzrignore View 1 chunk +1 line, -0 lines 0 comments Download
M HACKING.md View 1 2 4 chunks +66 lines, -82 lines 0 comments Download
A Makefile View 1 chunk +49 lines, -0 lines 0 comments Download
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M revision View 1 chunk +1 line, -1 line 0 comments Download
A tests/00-setup View 1 chunk +20 lines, -0 lines 0 comments Download
M tests/10-unit.test View 2 chunks +5 lines, -3 lines 0 comments Download
M tests/20-functional.test View 1 7 chunks +40 lines, -94 lines 0 comments Download
A tests/deploy.py View 1 chunk +62 lines, -0 lines 0 comments Download
A tests/helpers.py View 1 1 chunk +145 lines, -0 lines 0 comments Download
A tests/requirements.pip View 1 1 chunk +10 lines, -0 lines 0 comments Download
M tests/test_backends.py View 1 chunk +4 lines, -2 lines 0 comments Download
A tests/test_deploy.py View 1 chunk +163 lines, -0 lines 0 comments Download
A tests/test_helpers.py View 1 chunk +327 lines, -0 lines 0 comments Download
M tests/test_utils.py View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9
frankban
Please take a look.
10 years, 10 months ago (2013-06-07 14:17:26 UTC) #1
gary.poster
Wow, this looks great. I'll give it a LGTM conditional on at least one other ...
10 years, 10 months ago (2013-06-07 16:33:34 UTC) #2
teknico
LGTM, very nice work, a couple trivials. Did not QA yet, will do on Monday. ...
10 years, 10 months ago (2013-06-07 17:05:59 UTC) #3
bac
LGTM but I cannot get the tests to run cleanly and I have some documentation ...
10 years, 10 months ago (2013-06-07 20:05:58 UTC) #4
frankban
Please take a look. https://codereview.appspot.com/9874050/diff/1/HACKING.md File HACKING.md (right): https://codereview.appspot.com/9874050/diff/1/HACKING.md#newcode19 HACKING.md:19: sudo apt-get install build-essential bzr ...
10 years, 10 months ago (2013-06-10 09:18:53 UTC) #5
frankban
On 2013/06/07 20:05:58, bac wrote: > Trying to run with pyjuju I get the following ...
10 years, 10 months ago (2013-06-10 09:23:08 UTC) #6
teknico
teknico wrote: > Did not QA yet, will do on Monday. QA completed successfully, on ...
10 years, 10 months ago (2013-06-10 11:09:30 UTC) #7
frankban
*** Submitted: Replace jitsu test with juju-test. This branch makes juju-test the default test runner ...
10 years, 10 months ago (2013-06-10 15:28:08 UTC) #8
frankban
10 years, 10 months ago (2013-06-10 15:36:49 UTC) #9
Hi Gary, Nicola and Brad,
thanks for reviewing and QAing this branch!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b