Found 0 result(s) matching pattern: **/clover.xml
Able to get code coverage report when using
summaryFileLocation: “**/lcov.info” instead of clover.
Even though both are generating successfully in same path test/coverage
pipline.yml:
- task: PublishCodeCoverageResults@2
inputs:
codeCoverageTool: "Cobertura"
summaryFileLocation: "**/clover.xml"
reportDirectory: "test/coverage"
vitest.config.ts:
import { defineConfig } from “vitest/config”;
export default defineConfig({
test: {
globals: true,
environment: "jsdom",
setupFiles: "./setupTest.ts",
deps: {
inline: ["vitest-canvas-mock","highcharts"],
},
coverage: {
reporter: ['text', 'json', 'html', 'clover', 'lcov'],
exclude: ["node_modules/", "src/setupTests.ts"],
reportsDirectory: "test/coverage"
},
include: ["src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
},
});
Need help generating code coverage report with clover.xml
Atharva Mahajan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.