{"id":23069073,"url":"https://github.com/alextiley/wdio-cucumber-json-reporter","last_synced_at":"2025-08-15T13:31:54.899Z","repository":{"id":57397189,"uuid":"136745367","full_name":"alextiley/wdio-cucumber-json-reporter","owner":"alextiley","description":"Generates a JSON report for cucumber via webdriver.io","archived":false,"fork":false,"pushed_at":"2019-01-21T18:43:38.000Z","size":48,"stargazers_count":9,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T18:56:14.595Z","etag":null,"topics":["cucumber","json","reporter","wdio","webdriver"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alextiley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-09T17:45:53.000Z","updated_at":"2025-08-07T03:02:18.000Z","dependencies_parsed_at":"2022-09-07T09:21:51.643Z","dependency_job_id":null,"html_url":"https://github.com/alextiley/wdio-cucumber-json-reporter","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/alextiley/wdio-cucumber-json-reporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextiley%2Fwdio-cucumber-json-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextiley%2Fwdio-cucumber-json-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextiley%2Fwdio-cucumber-json-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextiley%2Fwdio-cucumber-json-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alextiley","download_url":"https://codeload.github.com/alextiley/wdio-cucumber-json-reporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextiley%2Fwdio-cucumber-json-reporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270578296,"owners_count":24610035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"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":["cucumber","json","reporter","wdio","webdriver"],"created_at":"2024-12-16T06:12:51.853Z","updated_at":"2025-08-15T13:31:54.620Z","avatar_url":"https://github.com/alextiley.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wdio-cucumber-json-reporter\nGenerates a JSON report for cucumber via webdriver.io\n\n## About this repo ##\n\nThis is a fork of the work previously done by [AlexGalichenko](https://github.com/AlexGalichenko/wdio-cucumber-json-reporter)\n\nI have adapted and added missing properties to the JSON report. It's quite rough around the edges and could definitely do with a tidy up, along with some defensive coding and tests! It was thrown together quickly in order to get nice reporting working via [multiple-cucumber-html-reporter](https://github.com/wswebcreation/multiple-cucumber-html-reporter)\n\n## Usage ##\n\n1. To install, run `yarn add wdio-json-cucumber-reporter` or `npm install wdio-json-cucumber-reporter`\n2. Add `json-cucumber` to the list of reporters in `wdio.conf.js` (see below).\n3. Run your tests\n4. Added bonus: `yarn add multiple-cucumber-html-reporter` and adapt the example config below.\n\n#### wdio.conf.js ####\n```javascript\n{\n  ...\n  reporters: ['json-cucumber'],\n  ...\n  reporterOptions: {\n    outputDir: 'some/output/dir',\n    cucumberJsonReporter: {\n      verbose: true, // true|false - set to true for verbose logging\n      deviceName: 'Local test environment' // Meta data for multiple-cucumber-html-reporter\n    }\n  }\n  ...\n}\n```\n\n## Integrating with multiple-cucumber-html-reporter\n\nThis repository was originally created so that I could integrate my work project with `multiple-cucumber-html-reporter`. Here's an example of how to get it working.\n\nAs long as the JSON reports are generated, you can then add something like the below to your `wdio.conf.js` onComplete hook. Make sure you set the paths correctly.\n\n```javascript\n  ...\n  onComplete: () =\u003e {\n    if (existsSync('./some/output/dir/report.json')) {\n      const htmlReporter = require('multiple-cucumber-html-reporter');\n      \n      htmlReporter.generate({\n        pageTitle: `My report page title`,\n        reportName: `Cucumber test report`,\n        disableLog: true,\n        jsonDir: './some/output/dir/',\n        reportPath: './some/output/dir/'\n      });\n    }\n  },\n  ...\n``` \n\n## Bug reporting ##\n\nFeel free to raise a pull request, or throw me a ticket via the issues section.\n\n## Known issues / missing features ##\n\n* Add support for screenshots via cucumber attachments\n* Add browser version to feature metadata, if obtainable\n* Add metadata for test start time, end time and total duration\n* Add metadata for feature count, scenario/scenario outline counts and step counts\n* Add metadata for failing test count\n* Save report file names based on browser name and timestamp\n* Retrieve arguments supplied to each step\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextiley%2Fwdio-cucumber-json-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextiley%2Fwdio-cucumber-json-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextiley%2Fwdio-cucumber-json-reporter/lists"}