Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2015-09-01 18:20:08 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2015-09-01 18:20:08 +0300
commit97a0164445cb29ffa90f99e67049fabaa2cf9ac4 (patch)
tree364de85480b4e9b0e61c655125cceeff3b051469 /Gruntfile.js
parentb8009568265d3f5a2c5031151fe6e25fa6930b04 (diff)
add sample js unit tests
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 89497d9c2..37e30ac24 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -24,16 +24,28 @@ module.exports = function(grunt) {
config: '.jscsrc',
verbose: true
}
+ },
+ karma: {
+ unit: {
+ configFile: 'karma.conf.js',
+ autoWatch: true
+ },
+ continuous: {
+ configFile: 'karma.conf.js',
+ browsers: ['PhantomJS'],
+ singleRun: true,
+ }
}
-
});
-
// jscs
grunt.loadNpmTasks('grunt-jscs');
// jshint
grunt.loadNpmTasks('grunt-contrib-jshint');
+ // Karma unit tests
+ grunt.loadNpmTasks('grunt-karma');
+
// Default task
- grunt.registerTask('default', ['jscs', 'jshint']);
+ grunt.registerTask('default', ['jscs', 'jshint', 'karma:continuous']);
};