Skip to content
Example application using grunt-istanbul and grunt-contrib-jasmine
JavaScript
Find file
Latest commit fb99b83 Aug 11, 2013 @maenu updated template version
Failed to load latest commit information.
src removed unused helpers Feb 13, 2013
Gruntfile.js updated readme May 11, 2013
LICENSE.txt init Jan 7, 2013
README.md updated readme May 11, 2013
package.json updated template version Aug 11, 2013

README.md

grunt-template-jasmine-istanbul Examples

There are multiple branches, each of which is an isolated example of how to use grunt-template-jasmine-istanbul.

Every example runs tests and generates coverage reports. Just run:

npm install
grunt test:coverage

and the coverage reports will appear in bin/coverage/index.html.

Have a look at the Gruntfile.js for the example configuration.

Examples

Simple

Shows a simple configuration without further dependencies and shows how to set up reports.

Connect

Uses grunt-contrib-connect to run the test on an ad-hoc server.

Simple RequireJS

Uses grunt-template-jasmine-requirejs to run the test on with RequireJS.

Complex RequireJS I

Uses grunt-template-jasmine-requirejs to run the test on with RequireJS, but this time doesn't screw up the RequireJS configuration by overriding the baseUrl option. Instead, this example redirects requests that should point to instrumented sources on the client side.

Complex RequireJS II

Uses grunt-template-jasmine-requirejs to run the test on with RequireJS, but this time doesn't screw up the RequireJS configuration by overriding the baseUrl option. Instead, this example redirects requests that should point to instrumented sources on the server side.

Something went wrong with that request. Please try again.