title: Angular CLI run both test report and code coverage report
body: <p><strong>Is it possible, in Angular CLI, to start testing with Karma and return code coverage by the same time?</strong></p>
  
  <h3>Explanation</h3>
  
  <p>Running <code>ng test</code> starts Chrome and run the tests, so I can see the results on Chrome.</p>
  
  <p>Running <code>ng test -cc</code> starts Chrome, run the tests <strong>without</strong> displaying tests results and produces code coverage report in <code>coverage</code> directory.</p>
  
  <p>Is it possible to have both? So I could benefit of "live" test-coding experience AND having code report generated along with tests results displayed in Chrome.</p>
  
  <h3>Current <code>karma.conf.js</code></h3>
  
  <pre class="lang-js prettyprint-override"><code>module.exports = function (config) {
    config.set({
      basePath: '',
      frameworks: ['jasmine', '@angular/cli', 'intl-shim'],
      plugins: [
        require('karma-jasmine'),
        require('karma-chrome-launcher'),
        require('karma-phantomjs-launcher'),
        require('karma-jasmine-html-reporter'),
        require('karma-mocha-reporter'),
        require('karma-coverage-istanbul-reporter'),
        require('@angular/cli/plugins/karma'),
        require('karma-intl-shim')
      ],
      client:{
        clearContext: false // leave Jasmine Spec Runner output visible in browser
      },
      files: [
        { pattern: './src/test.ts', watched: false },
        { pattern: './node_modules/intl/locale-data/jsonp/en-US.js', watched: false }
      ],
      preprocessors: {
        './src/test.ts': ['@angular/cli']
      },
      mime: {
        'text/x-typescript': ['ts','tsx']
      },
      coverageIstanbulReporter: {
        reports: [ 'html', 'lcovonly' ],
        fixWebpackSourcePaths: true
      },
      angularCli: {
        environment: 'dev'
      },
      reporters: config.angularCli &amp;&amp; config.angularCli.codeCoverage
                ? ['progress', 'coverage-istanbul']
                : ['progress', 'kjhtml'],
      port: 9876,
      colors: true,
      logLevel: config.LOG_INFO,
      autoWatch: true,
      browsers: ['Chrome'],
      singleRun: false
    });
  };
  </code></pre>