Merge lp://staging/~cprov/uci-engine/charm-tests into lp://staging/uci-engine
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~cprov/uci-engine/charm-tests |
Merge into: | lp://staging/uci-engine |
Diff against target: |
286 lines (+119/-21) 2 files modified
charms/precise/wsgi-app/unit_tests/test_hooks.py (+17/-17) testing/run_tests.py (+102/-4) |
To merge this branch: | bzr merge lp://staging/~cprov/uci-engine/charm-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Para Siva (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Vincent Ladeuil (community) | Needs Fixing | ||
Joe Talbott (community) | Approve | ||
Review via email: mp+236214@code.staging.launchpad.net |
Commit message
Fixing project test runner to load and run charm tests properly.
Description of the change
Fixing project test runner to load and run charm tests properly.
On the bright side, there was no test failures per se, since there were probably run by developers via local Makefile. We have a 45/45, so DON'T PANIC!
It was required to create a custom test loader, so the tests with the same relative path (standard) don't shadow the next ones; and also a custom test suite that is capable of reloading 'hooks' and 'charmhelpers' module before running tests for each charm (suite really, it does more reloads than necessary :-/).
It's unfortunate that such a simple problem (aggregating tests) implies in that much complexity encoded in testing/
Unmerged revisions
- 814. By Celso Providelo
-
Addressing review comments.
- 813. By Celso Providelo
-
Using a custom test suite for charms tests for reloding hooks & charmhelpers before running tests.
- 812. By Celso Providelo
-
Fix wsgi-app tests to import modules in the same way the other charms are doing (top-level 'hooks' module).
- 811. By Celso Providelo
-
Override ucitests.
loaders. Loader test import behavior to cope with our charms default testing topology (<charm> /unit_tests/ *.py). - 810. By Vincent Ladeuil
-
Rename the test files to make them unique in the unit_tests namespace, force unit_tests to be a package with multiple directories so all the tests can be properly loaded.
Outcome: 36 failures for 45 charm tests which is better than 8 passing tests (which in turn means all but one hidden charm tests are broken :-/)
PASSED: Continuous integration, rev:813 s-jenkins. ubuntu- ci:8080/ job/uci- engine- ci/1483/
http://
Executed test runs:
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/uci- engine- ci/1483/ rebuild
http://