How to launch karma Chrome in background
<p>I want to run karma chrome launcher in background because i am generating html tests and coverage reports which means i don't need a visual browser appearing everytime i run a test.</p>

<p>Here is my karma config file</p>

<pre><code>plugins : [
      'karma-jasmine',
      'karma-chrome-launcher',
      'karma-phantomjs-launcher',
      'karma-browserify',
      'karma-jasmine-jquery',
      'karma-html-reporter',
      'karma-coverage',
      'karma-es6-shim'
    ],
...
customLaunchers: {
      Chrome_without_security: {
        base: 'Chrome',
        flags: ['--disable-web-security']
      }
    }
...

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Chrome', 'Chrome_without_security' ]
</code></pre>

<p>i tried the <code>'--no-startup-window'</code> flag but it did not work </p>

<p>any suggestions ?</p>

<p>Thanks</p>