Hide Forgot
Cloned from launchpad blueprint https://blueprints.launchpad.net/horizon/+spec/jasmine-integration. Description: Currently, we use qUnit as the unit test framework for the client side, with the integration of AngularJS, it seems to be interesting to improve the quality of our testing tools. Jasmine could be a great idea, it could be run standalone through a browser. Jasmine brings some interesting features which could be really useful http://pivotal.github.io/jasmine/ Here are the features we do not have with qUnit: - it is possible to create ours own matcher: https://github.com/pivotal/jasmine/wiki/Matchers - it is possible to check the call of functions with the spies features https://github.com/pivotal/jasmine/wiki/Spies - it is also possible to mock function with these spies, this feature may be the most important. - the reporter provide a readable interfaces for our tests, which allow the developer to see which functionality is broken. Last but not least, AngularJS documentation provides a lot of testing examples based on Jasmine. This will be useful because we do not need any third party documentation, we can directly start the development of tests. qUnit test in Horizon are not so important at this time and we could easily change for the Jasmine testing suite, I have already rewrote a lot of tests: https://review.openstack.org/#/c/59580/ https://review.openstack.org/#/c/59617/ https://review.openstack.org/#/c/59624/ It is really easy to rewrote qUnit test into Jasmine one, the main features are closely the same. The goal is to replace completely qUnit. Specification URL (additional information): None
no docs required, it's used for internal tests on the gate. no qe tests required, as it's for development only.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2014-0855.html