mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
feat: Publish test coverage summaries to PRs (#513)
This commit is contained in:
@@ -10,6 +10,22 @@ import { defineConfig } from 'vitest/config';
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
globals: true, // Optional: enables global APIs like describe, it, expect
|
||||
globals: true,
|
||||
reporters: ['default', 'junit'],
|
||||
outputFile: {
|
||||
junit: 'junit.xml',
|
||||
},
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reportsDirectory: './coverage',
|
||||
reporter: [
|
||||
['text', { file: 'full-text-summary.txt' }],
|
||||
'html',
|
||||
'json',
|
||||
'lcov',
|
||||
'cobertura',
|
||||
['json-summary', { outputFile: 'coverage-summary.json' }],
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user