Closed edumserrano closed 10 months ago
it should be fixed in version 2.0.1, the report link should not be shown if the link file does not exist. or just set reportPath to empty
coverage: {
outputDir: './tests/test-results/code-coverage',
// do not show the global report link
reportPath: "",
reports: [...]
I've updated to version 2.0.1
and I can confirm this is now working as expected. Thank you @cenfun 🎉
I was wondering if it was possible to NOT show the global code coverage link if the file it points to does NOT exist. I mean this link:
There are two cases where I see this happening:
export default defineConfig({ testDir: './tests', outputDir: './tests/test-results' ... reporter: [ ... [ 'monocart-reporter', { name: 'playwright code coverage with monocart reporter', outputFile: './tests/test-results/monocart-report.html', ... coverage: { outputDir: './tests/test-results/code-coverage', reports: [ ['lcovonly', { file: 'lcov/code-coverage.lcov.info', // path relative to coverage.outputDir }], ] } } ] ... });