#24870 closed enhancement (duplicate)
Add JavaScript unit tests to core
| Reported by: | adamsilverstein | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Unit Tests | Version: | 3.5.2 |
| Severity: | normal | Keywords: | needs-unit-tests |
| Cc: | Focuses: |
Description
With more JavaScript entering core (like the new revisions screen), it would be great to build some JavaScript unit tests. I am opening this ticket to stimulate some discussion! I'm new to JavaScript unit testing, so could use some help from those with more experience.
There are many javascript unit testing frameworks: Qunit and Jasmine seem like likely candidates. Those who have experience with JavaScript unit test - please offer direction!
So far, I set up Jasmine.js and phantomjs (headless javascript engine), which seemed relatively painless. I'm going to work on writing some actual tests next, starting with revisions. Once I have something useful, I will post the results here.
Change History (13)
#4
in reply to: ↑ 1
@
13 years ago
Replying to brianhogg:
Adding a quick comment so I can get notified of the discussion.
If you want to receive updates for a particular ticket, you can just select the 'Add to Cc' checkbox under the ticket description ;)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Adding a quick comment so I can get notified of the discussion. Have done some unit testing with Backbone.js/Underscore.js/Jasmine-jquery in the past, so will help where I can! Was also working great as a javascript-based TDD tool.