JavascriptCompressionTesting

Revision as of 09:42, 31 January 2008 by Umar Sheikh (talk | contribs) (Steps to get to DoneDone)



OurWork Edit-chalk-10bo12.png

What (summary)

We want an automated test to make sure our javascript doesn't have invalid syntax that emerges when packed.

Why this is important

It is annoying to have to set $auPackJavascript = true; every time one wants to deploy new code. Setting javascript packing to false is useful to keep on during development.

DoneDone

If the javascript files contain a syntax error that causes decompression to fail, running "rake test integration" both show an error.

Steps to get to DoneDone

  • Check to see how easy it is to get [Rhino|http://developer.mozilla.org/en/docs/Rhino_Shell] running on everyone's computer.
    • Is it easy to install Java? If it seems like a too difficult process then forget about this entire task.
    • On the other hand, there are many useful Java tools we may want to be able to use...and Mac OS already has it installed
    • You'd probably want to distribute the Rhino [jar|http://www.mozilla.org/rhino/download.html] with the repo.
  • Shelling out to the command line is probably how to go.
  • Even if this doesn't prove useful I'm curious to know how it worked. -Stephen Judkins 23:51, 30 January 2008 (PST)
  • useful link: [1]


Retrieved from "http://aboutus.com/index.php?title=JavascriptCompressionTesting&oldid=14662039"