[wp-trac] [WordPress Trac] #25781: QUnit should be testable on both compiled and minimized JS

WordPress Trac noreply at wordpress.org
Fri Nov 15 22:11:33 UTC 2013


#25781: QUnit should be testable on both compiled and minimized JS
-------------------------+---------------------
 Reporter:  jorbin       |       Owner:  nacin
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.8
Component:  Build Tools  |     Version:  trunk
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
-------------------------+---------------------

Comment (by nacin):

 Now I remember why I did it the other way. The problem is if you run
 `grunt qunit` later, the compiled QUnit will be run, but it will be out of
 date.

 Two options. One is `grunt qunit:index` and `grunt qunit:compiled`.
 Ideally, though, `grunt qunit` can be used just for `qunit:index`. This is
 not possible without a big hack and/or
 [https://github.com/gruntjs/grunt/issues/815 this enhancement upstream],
 as found by jorbin.

 The second one is a bit of a hack, as attached as
 [attachment:25781.5.diff]. Ideally, qunit:compiled runs it on the
 uncompiled as well, but I couldn't get it to execute `qunit` then set the
 config then re-execute `qunit`. It's a queueing system and things work
 async and such.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25781#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list