cypress-ctrf-json-reporter is a Cypress test reporter designed to generate JSON reports conforming to the Common Test Report Format (CTRF) open standard. Currently at version `0.0.14`, this package is in its early development stages, with releases primarily focused on dependency updates and repository hygiene, indicating a maintenance-oriented cadence rather than active feature development. Its primary differentiator is the strict adherence to CTRF, a community-driven specification that ensures uniform, framework-agnostic test reports. This standardization allows for consistent validation, merging, comparison, and analysis of test results across diverse programming languages and testing frameworks, thereby improving CI/CD pipeline integration and analytics. It seamlessly integrates into Cypress configurations, outputting a `ctrf-report.json` file by default.
npm install cypress-ctrf-json-reporterVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install and configure the reporter within Cypress's `cypress.config.js` to generate a CTRF-compliant JSON report.
Always review release notes carefully when upgrading. Consider pinning to exact versions for production environments.
For Cypress < v10, initialize the reporter within `cypress/plugins/index.js` as shown in the package's documentation, passing the `on` object directly.
Refer to the 'Handling Multiple Plugins in Cypress' section in the reporter's README for guidance on how to manage and merge multiple event listeners, ensuring all plugins work together without conflict. This often involves a custom `setupNodeEvents` helper.
Ensure `const { GenerateCtrfReport } = require('cypress-ctrf-json-reporter')` (for CJS) or `import { GenerateCtrfReport } from 'cypress-ctrf-json-reporter'` (for ESM/TS) is used, and always instantiate it with `new GenerateCtrfReport({...})`.No dependency data recorded yet.