Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.01 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.01 KB

📝 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: {
        // path to reporter
        reporters: 'vitest-teamcity-reporter',
    },
    // optionaly config
    coverage: {
        // enable "Reporting Build Statistics"
        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 )