jasmine-ctrf-json-reporter is a utility package that provides a Jasmine test results reporter, specifically designed to output test reports conforming to the Common Test Report Format (CTRF) schema. This package addresses the challenge of inconsistent test report formats across various programming languages and testing frameworks by offering a standardized output. The current stable version is `0.0.7`. While a formal release cadence is not explicitly stated, the project demonstrates ongoing maintenance with recent dependency updates and minor version bumps. Its primary differentiator is its strict adherence to the CTRF open standard, which enables uniform validation, merging, comparison, and analysis of test results, regardless of the underlying testing tool or language. This consistency significantly simplifies integration into CI/CD pipelines and provides a universal reporting schema that facilitates better programmatic analysis of test outcomes.
npm install jasmine-ctrf-json-reporterVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install the reporter, configure it in Jasmine, and use the `ctrf.extra()` function to add custom metadata to individual test results.
Pin to exact versions in `package.json` for production environments (`"jasmine-ctrf-json-reporter": "0.0.x"`) and manually review releases, or use a tilde `~` to allow patch updates only.
Place `jasmine.getEnv().addReporter(new CtrfReporter(...));` in your main Jasmine configuration or helper file that is loaded before tests run.
Explicitly set `outputFile` and `outputDir` in the reporter options if you require a specific path, e.g., `{ outputFile: 'test-results.json', outputDir: 'artifacts' }`.Ensure you have `npm install --save-dev jasmine-ctrf-json-reporter` and use `const CtrfReporter = require('jasmine-ctrf-json-reporter');` for CommonJS or `import CtrfReporter from 'jasmine-ctrf-json-reporter';` for ESM.Run `npm install --save-dev jasmine-ctrf-json-reporter` to add the package to your project.
Ensure your reporter setup code is run within a Jasmine test environment, typically in a helper file loaded by Jasmine before test execution.
Verify the reporter is correctly added to `jasmine.getEnv().addReporter()` and check the `outputDir` and `outputFile` options. Ensure the test run completes without errors that might prevent the report from being written.
No dependency data recorded yet.