A Ruby Script To Generate a JsUnit Suite
Posted: May 26th, 2007 Tags: Howto, Javascript, JsUnitI’ve got a bunch of JsUnit tests for a project I’m working on and I wanted an easy way to create a JsUnit suite that can run all the tests but also run any individual test page.
Also, I wanted to be able to view any test page so I could debug the tests with Firebug (as explained here).
I also didn’t want to run a web server all the time, so I wanted a script that would create a static HTML file.
Here’s what I came up with. It’s not configurable, so you’ll have to modify it for your own needs.