2009JAN091652
JS testing
Working on some JS code. First I looked at fireunit but I want to do testing without having to fire up browsers. and all I want is simple command line error reporting for testing pure javascript (sans DOM or other frameworks). Next I tried quite a few other types of unit testing approaches but settled on JSUnit. I took a good look at how JQuery does its setup but I don't have enough code yet to warrant a build framework. I just want a framework that I can run from a cron now.
It took a bit of mucking around but I've got the boilerplate in the RH dialog and a few lines in the LH dialog. The rest is my test code which is pretty much the same as PyUnit, JUnit etc.
Now I can run tests on my pure JS code automatically without relying on running browsers.
The run shows an test catching a simple error.
next >>>
2009JAN091652
JS testing
Working on some JS code. First I looked at fireunit but I want to do testing without having to fire up browsers. and all I want is simple command line error reporting for testing pure javascript (sans DOM or other frameworks). Next I tried quite a few other types of unit testing approaches but settled on JSUnit. I took a good look at how JQuery does its setup but I don't have enough code yet to warrant a build framework. I just want a framework that I can run from a cron now.
It took a bit of mucking around but I've got the boilerplate in the RH dialog and a few lines in the LH dialog. The rest is my test code which is pretty much the same as PyUnit, JUnit etc.
Now I can run tests on my pure JS code automatically without relying on running browsers.
The run shows an test catching a simple error.
next >>>