[wp-trac] [WordPress Trac] #30824: Upgrade to QUnit 1.16

WordPress Trac noreply at wordpress.org
Tue Dec 23 00:44:45 UTC 2014


#30824: Upgrade to QUnit 1.16
------------------------------+-----------------------------
 Reporter:  jorbin            |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Since adopting QUnit as our unit testing framework for JavaScript, there
 have been four releases.  We haven't updated any of them.

 The biggest change is that they have started setting up for a
 [http://qunitjs.com/upgrade-guide-2.x/ 2.0 release that will require us to
 make some changes] to how our tests are written.

 Some of the other changes that will be nice to have now are:

 QUnit asynchronous tests can also now be defined using the new var done =
 assert.async() method instead of the old stop()/start(), making them
 specific to the test block.

 QUnit.skip: This method can be used to define tests that aren’t executed,
 as placeholders or to temporarily disable an existing test (instead of
 commenting it out). The skipped test is still displayed in the HTML
 reporter, marked prominently as “SKIPPED”.

 There also has been a lot of work done to make it easier to run tests with
 runners such as karma that we could use to automate running our tests in
 real browsers.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30824>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list