Skip to content

Commit

Permalink
flag for running karma tests continuously
Browse files Browse the repository at this point in the history
  • Loading branch information
lmenezes committed Jan 2, 2021
1 parent ddba9b3 commit bf2937b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = function(grunt) {

var singleRunTests = grunt.option('singleRunTests') !== false;
grunt.initConfig({
clean: {
dist: {
Expand Down Expand Up @@ -77,7 +78,7 @@ module.exports = function(grunt) {
}
},
karma: {
unit: {configFile: 'tests/karma.config.js'}
unit: {configFile: 'tests/karma.config.js', singleRun: singleRunTests }
},
eslint: {
options: {
Expand Down
3 changes: 1 addition & 2 deletions tests/karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module.exports = function(config) {
transports: ['websocket', 'polling'],
browsers: ['ChromeHeadless'],
// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,
singleRun: true // Continuous Integration mode: if true, it capture browsers, run tests and exit
captureTimeout: 60000
});
};

0 comments on commit bf2937b

Please sign in to comment.