{"id":15017345,"url":"https://github.com/ctrf-io/jasmine-ctrf-json-reporter","last_synced_at":"2026-02-20T00:01:25.471Z","repository":{"id":224531877,"uuid":"751536498","full_name":"ctrf-io/jasmine-ctrf-json-reporter","owner":"ctrf-io","description":"A Jasmine JSON test results reporter that follows the CTRF schema","archived":false,"fork":false,"pushed_at":"2026-02-07T16:25:08.000Z","size":417,"stargazers_count":3,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-07T21:24:41.041Z","etag":null,"topics":["jasmine","jasmine-reporter","test-automation","test-reporting"],"latest_commit_sha":null,"homepage":"https://ctrf.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctrf-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-01T19:58:49.000Z","updated_at":"2025-10-27T19:32:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"d14c6acf-3cbe-4516-840a-d8da029860bd","html_url":"https://github.com/ctrf-io/jasmine-ctrf-json-reporter","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"0710ed7d6eb1919f63b2b92fe839c4e2a7a81216"},"previous_names":["ctrf-io/jasmine-ctrf-json-reporter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ctrf-io/jasmine-ctrf-json-reporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjasmine-ctrf-json-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjasmine-ctrf-json-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjasmine-ctrf-json-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjasmine-ctrf-json-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctrf-io","download_url":"https://codeload.github.com/ctrf-io/jasmine-ctrf-json-reporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fjasmine-ctrf-json-reporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29637400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jasmine","jasmine-reporter","test-automation","test-reporting"],"created_at":"2024-09-24T19:50:20.060Z","updated_at":"2026-02-20T00:01:25.448Z","avatar_url":"https://github.com/ctrf-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jasmine JSON test results report\n\n\u003e Save Jasmine test results as a JSON file\n\nA jasmine JSON test reporter to create test reports that follow the CTRF standard.\n\n[Common Test Report Format](https://ctrf.io) ensures the generation of uniform JSON test reports, independent of programming languages or test framework in use.\n\n## CTRF Open Standard\n\nCTRF is a community-driven open standard for test reporting.\n\nBy standardizing test results, reports can be validated, merged, compared, and analyzed consistently across languages and frameworks.\n\n- **CTRF Specification**: https://github.com/ctrf-io/ctrf  \n  The official specification defining the format and semantics\n- **Discussions**: https://github.com/orgs/ctrf-io/discussions  \n  Community forum for questions, ideas, and support\n\n\u003e [!NOTE]  \n\u003e ⭐ Starring the **CTRF specification repository** (https://github.com/ctrf-io/ctrf)\n\u003e helps support the standard.\n\n## Features\n\n- Generate JSON test reports that are [CTRF](https://ctrf.io) compliant\n- Straightforward integration with jasmine\n\n```json\n{\n  \"results\": {\n    \"tool\": {\n      \"name\": \"jasmine\"\n    },\n    \"summary\": {\n      \"tests\": 1,\n      \"passed\": 1,\n      \"failed\": 0,\n      \"pending\": 0,\n      \"skipped\": 0,\n      \"other\": 0,\n      \"start\": 1706828654274,\n      \"stop\": 1706828655782\n    },\n    \"tests\": [\n      {\n        \"name\": \"ctrf should generate the same report with any tool\",\n        \"status\": \"passed\",\n        \"duration\": 100\n      }\n    ],\n    \"environment\": {\n      \"appName\": \"MyApp\",\n      \"buildName\": \"MyBuild\",\n      \"buildNumber\": \"1\"\n    }\n  }\n}\n```\n\n## What is CTRF?\n\nCTRF is a universal JSON test report schema that addresses the lack of a standardized format for JSON test reports.\n\n**Consistency Across Tools:** Different testing tools and frameworks often produce reports in varied formats. CTRF ensures a uniform structure, making it easier to understand and compare reports, regardless of the testing tool used.\n\n**Language and Framework Agnostic:** It provides a universal reporting schema that works seamlessly with any programming language and testing framework.\n\n**Facilitates Better Analysis:** With a standardized format, programatically analyzing test outcomes across multiple platforms becomes more straightforward.\n\n## Installation\n\n```bash\nnpm install --save-dev jasmine-ctrf-json-reporter\n```\n\nAdd the reporter to your spec/helpers file:\n\n```javascript\nconst CtrfReporter = require('jasmine-ctrf-json-reporter')\n\njasmine.getEnv().addReporter(new CtrfReporter({}))\n```\n\nRun your tests:\n\n```bash\nnpx jasmine\n```\n\nYou'll find a JSON file named `ctrf-report.json` in the `ctrf` directory.\n\n## Reporter Options\n\nThe reporter supports several configuration options:\n\n```javascript\njasmine.getEnv().addReporter(\n  new CtrfReporter({\n    outputFile: 'custom-name.json', // Optional: Output file name. Defaults to 'ctrf-report.json'.\n    outputDir: 'custom-directory', // Optional: Output directory path. Defaults to 'ctrf'.\n    appName: 'MyApp', // Optional: Specify the name of the application under test.\n    appVersion: '1.0.0', // Optional: Specify the version of the application under test.\n    osPlatform: 'linux', // Optional: Specify the OS platform.\n    osRelease: '18.04', // Optional: Specify the OS release version.\n    osVersion: '5.4.0', // Optional: Specify the OS version.\n    buildName: 'MyApp Build', // Optional: Specify the build name.\n    buildNumber: '100', // Optional: Specify the build number.\n  })\n)\n```\n\n## Test Object Properties\n\nThe test object in the report includes the following [CTRF properties](https://ctrf.io/docs/schema/test):\n\n| Name       | Type   | Required | Details                                                                             |\n| ---------- | ------ | -------- | ----------------------------------------------------------------------------------- |\n| `name`     | String | Required | The name of the test.                                                               |\n| `status`   | String | Required | The outcome of the test. One of: `passed`, `failed`, `skipped`, `pending`, `other`. |\n| `duration` | Number | Required | The time taken for the test execution, in milliseconds.                             |\n| `message`  | String | Optional | The failure message if the test failed.                                             |\n| `trace`    | String | Optional | The stack trace captured if the test failed.                                        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrf-io%2Fjasmine-ctrf-json-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctrf-io%2Fjasmine-ctrf-json-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrf-io%2Fjasmine-ctrf-json-reporter/lists"}