karma-runner / grunt-karma

Grunt plugin for Karma.
MIT License
468 stars 116 forks source link

Background prevent istanbul to perform #132

Open samudurand opened 9 years ago

samudurand commented 9 years ago

I wrote a karma configuration using Istanbul coverage that was working perfectly fine when I run it using Grunt, until I tried to make it run in background.

Here is the Grunt task :

karma: {
      unit: {
        configFile: 'karma.conf.js'
      },
      continuous: {
        configFile: 'karma.conf.js',
        singleRun: true,
        background: true
      }
    }

The tests are running well with or without the 'background' config, but if I let the 'background' then istanbul does not write the report (no error shown, just nothing generated).