Skip to content

avinyaweb/vitest-ctrf-json-reporter

Repository files navigation

📝 VITEST-CTRF-JSON-REPORTER

Save Vitest test results as a JSON file

A Vitest test reporter to create test reports that follow the CTRF standard.

It will generate a JSON file report.json in the vitest-ctrf folder (it is configurable). To show the report, you can use the ctrf action.

🚀 Quick Start

💿 Installation

pnpm i -D vitest-ctrf-json-reporter

🔧 Configuration

Add new custom reporter vite.config.ts

import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    reporters: ['vitest-ctrf-json-reporter'],
  },
})

Requirements

author: Ganesh Developed BY : JavaScript Developer

Releases

No releases published

Packages

No packages published