2014-09-25 42 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: '...' } 
    ] 
} 

應工作