Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added testacular task, store maintainability report per date

  • Loading branch information...
commit b6376ef6fe102353c1f5e009103ecff6c0c6f877 1 parent 02d5cca
Jan Mühlemann jamuhl authored
Showing with 24 additions and 2 deletions.
  1. +23 −2 Gruntfile.js
  2. +1 −0  package.json
25 Gruntfile.js
View
@@ -11,6 +11,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-rigger');
grunt.loadNpmTasks('grunt-contrib');
grunt.loadNpmTasks('grunt-shell');
+ grunt.loadNpmTasks('gruntacular');
grunt.loadTasks('buildtasks');
// Project configuration.
@@ -28,11 +29,28 @@ module.exports = function(grunt) {
shell: {
/* create phonegap projects */
maintain: {
- command: 'plato -r -d reports/maintain src',
+ command: 'plato -r -d reports/maintain/<%= grunt.template.today("yyyymmdd") %> src',
stdout: true
}
},
+ testacular: {
+ options: {
+ configFile: 'testacular.conf.js'
+ },
+ ci: {
+ singleRun: true,
+ browsers: ['PhantomJS']
+ },
+ all: {
+
+ },
+ dev: {
+ reporters: 'dots',
+ browsers: ['PhantomJS']
+ }
+ },
+
jshint: {
options: {
scripturl: true,
@@ -211,7 +229,10 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['clean', 'rig']);
grunt.registerTask('release', ['default', 'uglify', 'copy', 'compress']);
- grunt.registerTask('report', ['shell:maintain']);
+ grunt.registerTask('test', ['testacular:dev']);
+ grunt.registerTask('test:all', ['testacular:all']);
+
+ grunt.registerTask('report', ['shell:maintain', 'testacular:ci']);
};
1  package.json
View
@@ -13,6 +13,7 @@
, "grunt-rigger": "*"
, "grunt-contrib": ">=0.1.0"
, "grunt-shell": ">=0.1.0"
+ , "gruntacular": ">=0.1.0"
, "express": ">= 0.0.1"
, "async": ">= 0.1.18"
, "lodash": ">= 0.5.x"
Please sign in to comment.
Something went wrong with that request. Please try again.