📝 vitest-teamcity-reporter
💿 Installation
pnpm install -D vitest-teamcity-reporter
npm install -D vitest-teamcity-reporter
🔧 Configuration
Add new custom reporter vite.config.ts
import {defineConfig} from 'vitest/config';
export default defineConfig({
test: {
reporters: 'vitest-teamcity-reporter',
},
coverage: {
reporter: ['teamcity'],
}
});
Reporting Build Statistics
For enabling "Reporting Build Statistics"
for TeamCity you may add a "teamcity" coverage reporter
that is the default provided by vitest (
vitest doc,
istanbul doc
)