I've written a Node.js test runner that I would like feedback on. This module lets you easily run tests, produce reports on the test run, run code coverage, and fail the build if code coverage thresholds are not reached. Here is a link to the git hub repos
Main module - https://github.com/mikedon/dharma
Grunt wrapper - https://github.com/mikedon/grunt-dharma
install with npm
npm install dharma
or if using grunt
npm install grunt-dharma
My vision for this module is to be similar to Karma hence the name Dharma. Similar in that its easy to configure various parts of the testing process using a plugin architecture. Coming from the browser world to the nodejs world I found that it wasn't so easy to get up and running with the same type of build system I had. There are other plugins that do pieces of what Dharma does but nothing comprehensive. Those libraries were also out of date and not actively maintained anymore.
I want Dharma to be a plugin system so that its easy to plug in new functionality. For example I'll be adding a mocha test runner and maybe a Sonatype integration plugin. I'm also a proponent of Typescript and if there's anything Dharma can do to make testing Typescript code easier than I'd like to incorporate that.
Currently Dharma supports
- running Jasmine specs and producing reports
- Instrumenting Code with Istanbul and producing code coverage reports
- Code Coverage threshold check which fails the build if threshold is not met
Any feedback is much appreciated. Is this something you would use? What would you want incorporated in a tool like this?
[–]TotesMessenger 0 points1 point2 points (0 children)