Gruntfile.js 637 B

1234567891011121314151617181920
  1. var globalThreshold = 50; // Global code coverage threshold (as a percentage)
  2. module.exports = function(grunt) {
  3. grunt.initConfig({
  4. // Configuration to be run (and then tested).
  5. blanket_qunit: {
  6. default_options: {
  7. options: {
  8. urls: ['js_tests/tests.html?coverage=true&gruntReport'],
  9. globalThreshold: globalThreshold,
  10. threshold: 10
  11. }
  12. }
  13. }
  14. });
  15. grunt.loadNpmTasks('grunt-blanket-qunit');
  16. grunt.registerTask('test', ['blanket_qunit']);
  17. grunt.registerTask('default', ['test']);
  18. };