webdriverio/webdriverio
[ð¡ Feature]: allow in wdio-devtools-service coverageReporter multiple report types
ãªãŒãã³
#8,050 opened on 2022/02/23
EnhancementIdea ð¡help wanted
Repository metrics
- Stars
-  (6,029 åã®ã¹ã¿ãŒ)
- PR merge metrics
-  (å¹³åããŒãž 15d 15h) (30d ã§ 48 merged PRs)
説æ
Is your feature request related to a problem?
Having multiple formats of coverage reports of the same test run is very common
- HTML for test-writer
- Text std as fast check for anyone
- JSON for quality gates
NYC can do this with multiple ---reporter arguments see
But WDIO allows only one type and is not exposing the raw data, as NYC is doing it; in '.nyc_output'.
So there is no way to create another report.
Describe the solution you'd like.
// wdio.conf.js
services: [
['devtools', {
coverageReporter: {
enable: true,
type: [ 'html', 'text' ], // => be able to declare this
logDir: __dirname + '/coverage'
}
}]
]
Describe alternatives you've considered.
Write the raw coverage results to .nyc_output. This would also enable to create multiple coverage reports.
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct