Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
blob: 9fa6826535cba4818048e2d4260752ce288310a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var globalThreshold = 50;  // Global code coverage threshold (as a percentage)

module.exports = function(grunt) {
    grunt.initConfig({
        // Configuration to be run (and then tested).
        blanket_qunit: {
            default_options: {
                options: {
                    urls: ['js_tests/tests.html?coverage=true&gruntReport'],
                    globalThreshold: globalThreshold,
                    threshold: 10
                }
            }
        }
    });

    grunt.loadNpmTasks('grunt-blanket-qunit');
    grunt.registerTask('test', ['blanket_qunit']);
    grunt.registerTask('default', ['test']);
};