Setting up the coverage reporter
Testacular (version >= 0.5.3) has a coverage reporter to generate differnent formats of coverage reports (lcov, html, text,..).
To set it up, you can either init a new testacular.conf.js with
$ testacular init
Be really careful with the "preprocessors" option, because it uses minimatch in a certain way, that requires the "**/" to be at the very beginning of each path you specify. Running testacular with
--log-level debug tells you which files have or haven't been picked up by the preprocessor, if you're in doubt.
For more options see the testacular wiki page for the coverage reporter on GitHub
Pitfall: Manual browser mode
If you get weird results or errors thrown at you, check the browser setting:
browsers = ;
means that you need to manually point your browser to http://localhost:SOMEPORT and testacular will execute within that browser.
For some reason I couldn't nail down, this screws you up big time.
Don't do it. Be a good boy, specify your browsers there, such as
browsers = ['Chrome', 'Firefox'];
and you'll be good.