2014-09-25 51 views
2

我想从业力报道记者那里获得cobertura和html输出。目前我必须运行两次测试。有一次,有此配置:如何设置多种类型的Karma覆盖报告器?

reporters: ['progress', 'coverage'] 
coverageReporter: { type : 'cobertura', dir : 'coverage/', file: 'cobertura.xml' } 

其他时间:

coverageReporter: {type : 'html'.... 

有没有办法在一个运行做到这一点?

回答

10
coverageReporter: { 
    reporters: [ 
    { type: 'html', dir: '/' }, 
    { type: 'cobertura', dir: '...' } 
    ] 
} 

应工作