As well as using Autotest to run Cucumber scenarios I have also been looking into integrating lower level test into the Autotest cycle.
My first attempt at this is a small module to run Javascript Lint on all the javascript files within a project any time any file changes.
The module below hooks in to Autotest just before the tests are normally run. It runs javascript lint over all the *.js
files in the project, outputs the results to the autotest results object and the standard output, and finally fires a new ran_javascript_lint
hook
Errors and warnings found by Javascript Lint will also be notified through Growl (if Growl and autotest-growl are installed). If there are no errors or warnings than no Growl notification is shown. This keeps distracting popups to a minimum.
more