karma-runner/karma

Batch job does not terminate with Karma 1.4.0

Open

#2552 opened on Jan 27, 2017

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (11,918 stars) (1,703 forks)batch import
help wantedneeds: investigationtype: bug

Description

Expected behaviour

The batch job gulp test_browser should terminate when the Gulp task test_browser finishes.

Actual behaviour

The batch job gulp test_browser does not terminate when the Gulp task test_browser finishes. I need to kill the job manually (Ctrl + C).

Environment Details

  • Operating system: Windows 10 Home
  • Karma version (output of karma --version): 1.4.0

gulpfile.js

gulp.task('test_browser', function(done) {
  gutil.log(gutil.colors.yellow('Running tests in Google Chrome:'));

  var server = new Server({
    configFile: __dirname + '/karma.conf.js',
    files: [
      'test/js/helpers/**/*.js',
      paths.dist_window + '/**/*.js',
      'test/js/specs/**/*Spec.js'
    ]
  }, done);

  server.start();
});

Steps to reproduce the behaviour

  1. I upgraded from "karma": "1.3.0" to "karma": "1.4.0" (in package.json)
  2. When I run gulp test_browser, then this job does not terminate with Karma 1.4.0 (but it does with Karma 1.3.0)
  3. The project I used for testing is: https://github.com/wireapp/bazinga64

Terminal output with Karma v1.3.0 server

karma-1-3-0

Terminal output with Karma v1.4.0 server

karma-1-4-0

Please let me know if you need more details. Happy to help!

Contributor guide