{"id":20052581,"url":"https://github.com/devniel/generator-testcafe-cucumber-steps","last_synced_at":"2025-05-05T11:32:38.827Z","repository":{"id":35072270,"uuid":"200745281","full_name":"devniel/generator-testcafe-cucumber-steps","owner":"devniel","description":"Testcafe cucumber steps yeoman generator.","archived":false,"fork":false,"pushed_at":"2023-01-04T06:22:47.000Z","size":2497,"stargazers_count":2,"open_issues_count":15,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-10T09:17:14.350Z","etag":null,"topics":["cucumber","generator","testcafe","yeoman"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/devniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-06T00:02:04.000Z","updated_at":"2023-03-04T05:09:42.000Z","dependencies_parsed_at":"2023-01-15T13:15:15.025Z","dependency_job_id":null,"html_url":"https://github.com/devniel/generator-testcafe-cucumber-steps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devniel%2Fgenerator-testcafe-cucumber-steps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devniel%2Fgenerator-testcafe-cucumber-steps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devniel%2Fgenerator-testcafe-cucumber-steps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devniel%2Fgenerator-testcafe-cucumber-steps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devniel","download_url":"https://codeload.github.com/devniel/generator-testcafe-cucumber-steps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224444471,"owners_count":17312225,"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","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","generator","testcafe","yeoman"],"created_at":"2024-11-13T12:18:24.310Z","updated_at":"2024-11-13T12:18:25.001Z","avatar_url":"https://github.com/devniel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generator-testcafe-cucumber-steps\n\n### How to use\n```\nnpm install -g yo\nnpm install -g generator-testcafe-cucumber-steps\n\nyo testcafe-cucumber-steps\n```\n\n### Options\n\n- `featurePath`: Path to the target, the `.feature` file.\n- `stepsPath`: Path of the steps directory (the `.steps.js` file will be generated here).\n- `stepFilename`: Filename of the steps' file (without `.steps.js`), it could have the form of a path (`/subdirectory/stepFilename`) that will create the proper folders inside the `stepsPath`.\n- `templatePath`: Path to the filename to use for create the `.steps.js` file.\n\n\n### Template:\n\nThe template should be a EJS file, the default one is:\n\n```ejs\nconst {Given, When, Then} = require('cucumber');\n\n\u003c% steps.forEach(function(step) { -%\u003e\n\u003c%= step.keyword %\u003e('\u003c%- step.expression %\u003e', function (\u003c%= step.parameters.join(', ') %\u003e) {\n  return 'pending';\n});\n\n\u003c% }); \n\n-%\u003e\n```\n\nThe `steps` object is an array with the steps to be used for the file generation, each `step` has the following properties:\n\n- `keyword`: The captured keyword (When, Then, Given).\n- `expression`: The expression content without `\"`, `'`, `/^` and `$/`.\n- `parameters`: An array of the generated paramenter names, it should be `param1`, `param2`, `param3` and so on based on the detected parameters (any string between `'` or `\"`) in the expression.\n\n\n### Notes\n\nBased on https://github.com/lamartire/generator-cucumber-steps but with the updated modules and for Testcafé environments.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevniel%2Fgenerator-testcafe-cucumber-steps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevniel%2Fgenerator-testcafe-cucumber-steps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevniel%2Fgenerator-testcafe-cucumber-steps/lists"}