[wp-trac] [WordPress Trac] #24870: Add JavaScript unit tests to core
WordPress Trac
noreply at wordpress.org
Mon Jul 29 00:59:01 UTC 2013
#24870: Add JavaScript unit tests to core
-----------------------------+------------------------------
Reporter: adamsilverstein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Unit Tests | Version: 3.5.2
Severity: normal | Keywords: needs-unit-tests
-----------------------------+------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24870>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list