[wp-trac] [WordPress Trac] #25096: Automate running JavaScript unit tests with Grunt

WordPress Trac noreply at wordpress.org
Tue Aug 20 18:45:05 UTC 2013


#25096: Automate running JavaScript unit tests with Grunt
-------------------------+-----------------------------
 Reporter:  kadamwhite   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Unit Tests   |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 As [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2013-08-20&sort=asc#m669704 discussed in IRC], we are beginning
 the process of adding JavaScript unit tests. Grunt may be used to
 automatically run JS unit tests from the command line, shortening the
 develop-test feedback cycle. This patch adds a Grunt task to run QUnit-
 based tests like the ones being worked on in #25088.

 Install this patch alongside #25088, run `npm install` to install the
 QUnit plugin for Grunt, then run tests with `grunt test`.

 I am in the process of enhancing this to also provide an option to run
 tests in a local web server, in order to get more visual feedback, permit
 running tests in multiple browsers, and/or use browser development tools
 while writing tests.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25096>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list