{"id":20137074,"url":"https://github.com/ctrf-io/nightwatch-ctrf-json-reporter","last_synced_at":"2026-06-17T23:31:53.294Z","repository":{"id":224812475,"uuid":"735092825","full_name":"ctrf-io/nightwatch-ctrf-json-reporter","owner":"ctrf-io","description":"A Nightwatch JSON test results reporter that follows the CTRF schema","archived":false,"fork":false,"pushed_at":"2026-06-06T14:25:02.000Z","size":493,"stargazers_count":0,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-06T16:09:18.316Z","etag":null,"topics":["nightwatchjs","nightwatchjs-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":"2023-12-23T16:29:55.000Z","updated_at":"2026-06-06T14:24:58.000Z","dependencies_parsed_at":"2024-04-16T22:32:04.857Z","dependency_job_id":"52d97dd1-4d14-437a-ad48-bf8602ade90e","html_url":"https://github.com/ctrf-io/nightwatch-ctrf-json-reporter","commit_stats":null,"previous_names":["ctrf-io/nightwatch-ctrf-json-reporter"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ctrf-io/nightwatch-ctrf-json-reporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fnightwatch-ctrf-json-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fnightwatch-ctrf-json-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fnightwatch-ctrf-json-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fnightwatch-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/nightwatch-ctrf-json-reporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrf-io%2Fnightwatch-ctrf-json-reporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34470322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["nightwatchjs","nightwatchjs-reporter","test-automation","test-reporting"],"created_at":"2024-11-13T21:25:04.432Z","updated_at":"2026-06-17T23:31:53.288Z","avatar_url":"https://github.com/ctrf-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nightwatch JSON test results report\n\n\u003e Save a common JSON test report for nightwatch tests\n\nA nightwatch.js 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 nightwatch\n\n```json\n{\n  \"results\": {\n    \"tool\": {\n      \"name\": \"nightwatch\"\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## Installation\n\n```bash\nnpm install --save-dev nightwatch-ctrf-json-reporter\n```\n\nRun your nightwatch tests as you normally would:\n\n```bash\nnpx nightwatch ./nightwatch --reporter=nightwatch-ctrf-json-reporter\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, add to nightwatch.conf.js:\n\n```javascript\n      globals: {\n        ...\n        ctrf: {\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          buildUrl: \"https://ctrf.io\",    // Optional: Specify the build url.\n          repositoryName: \"ctrf-json\",    // Optional: Specify the repository name.\n          repositoryUrl: \"https://gh.io\", // Optional: Specify the repository url.\n          branchName: \"main\",             // Optional: Specify the branch name.\n          testEnvironment: \"staging\"      // Optional: Specify the test environment (e.g. staging, production).\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\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrf-io%2Fnightwatch-ctrf-json-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctrf-io%2Fnightwatch-ctrf-json-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrf-io%2Fnightwatch-ctrf-json-reporter/lists"}