Review Board 1.7.22


Closure compile all feature JavaScript as part of JUnit execution to ensure no JavaScript errors at build time

Review Request #5107 - Created May 14, 2012 and submitted

Stanton Sievers
SHINDIG-1771
Reviewers
shindig
shindig
See the JIRA for the high-level description.

My approach to doing this was to introduce a new test case in the end-to-end tests.  This way I can test with a real FeatureRegistry against the real web app.  I make a request to the JsServlet for all of the features, which will run through the compiler processors.  Because of the changes that went in for https://issues.apache.org/jira/browse/SHINDIG-1770, we will return the compile error and this will get printed as part of the JUnit assert failure, pin-pointing the exact compile problem.

Note that this does increase the time it takes to execute the EndToEndTest on the scale of tens of seconds.
Introduced some JS errors and verified that the unit test failed.  Additionally verified the reason for the failure was readily available.
Review request changed
Updated (May 15, 2012, 1:46 a.m.)
Making the all feature name a little more unique so as to avoid any collisions.
Ship it!
Posted (May 15, 2012, 1:46 a.m.)
Committed revision 1338499.