{"id":21878892,"url":"https://github.com/moduscreateorg/codeceptjs-nightmare-harness","last_synced_at":"2026-05-09T17:48:59.715Z","repository":{"id":143422259,"uuid":"116985912","full_name":"ModusCreateOrg/codeceptjs-nightmare-harness","owner":"ModusCreateOrg","description":"A simple test harness for CodeceptJS + Nightmare","archived":false,"fork":false,"pushed_at":"2018-01-11T19:30:10.000Z","size":516,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T18:27:57.989Z","etag":null,"topics":["automation-ui","codeceptjs","docker","docker-compose","javascript","nightmarejs"],"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/ModusCreateOrg.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-10T17:00:31.000Z","updated_at":"2019-10-25T08:48:42.000Z","dependencies_parsed_at":"2023-09-24T15:04:12.329Z","dependency_job_id":null,"html_url":"https://github.com/ModusCreateOrg/codeceptjs-nightmare-harness","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/ModusCreateOrg%2Fcodeceptjs-nightmare-harness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModusCreateOrg%2Fcodeceptjs-nightmare-harness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModusCreateOrg%2Fcodeceptjs-nightmare-harness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ModusCreateOrg%2Fcodeceptjs-nightmare-harness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ModusCreateOrg","download_url":"https://codeload.github.com/ModusCreateOrg/codeceptjs-nightmare-harness/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244885697,"owners_count":20526296,"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":["automation-ui","codeceptjs","docker","docker-compose","javascript","nightmarejs"],"created_at":"2024-11-28T08:14:02.676Z","updated_at":"2026-05-09T17:48:54.672Z","avatar_url":"https://github.com/ModusCreateOrg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeceptJS Nightmare Test Harness\n\nThe following repository provides a basic structure for testers to quickly spin\nup their own automation projects using [CodeceptJS](http://codecept.io/) and [Nightmare](http://www.nightmarejs.org/).\n\n## Setup Info\nFirst, to install the necessary packages run `npm install`. This will install\nthe following packages:\n * CodeceptJS\n * CodeceptJS-Nightmare\n * Nightmare\n * Nightmare-upload\n * Mochawesome\n\n*Tip*: If you run into `SyntaxError: Unexpected token )`, you can follow the\nsuggestions on this [issue](https://github.com/Codeception/CodeceptJS/issues/837)\nto clear things up.\n\nThis repo has already initialized a codeceptjs-nightmare project. However, if you\nwant to initialize a new project, simply delete `codecept.json`, run\n`codeceptjs init`, and follow the prompts.\n\n## Additional Test Setup\nCodeceptJS provides generators for different parts of your tests. We have already\nprovided a few samples you can use as templates. To generate any new files, you\ncan run the following:\n * **Test Scenarios**: `codeceptjs gt`\n * **Page Objects**: `codeceptjs gpo`\n * **Page Fragments** (modals or widgets, for example): `codeceptjs go --type fragment`\n * **Step Objects**: `codeceptjs go --type step`\n\nEach generator will update the includes section of `codecept.json`.\n\n## Running Tests\nOnce everything is installed, you can simply execute `npm tests` to run\nthe existing test. The `codecept.json` file houses the configurations needed to\nrun tests. Here is a portion of that file with notes on important features:\n\n```javascript\n{\n  \"output\": \"./output\", // screenshots for failures\n  \"helpers\": {\n    \"Nightmare\": {\n      \"url\": \"https://moduscreate.com/\",\n      \"show\": true, // tests run in a window\n      \"restart\": false // uses a single browser instance\n    }\n  },\n  \"include\": { // set up by codeceptjs generators\n    \"modusHomePage\": \"./pages/modusHomePage.js\",\n    \"modusEmailModalFragment\": \"./fragments/modusEmailModal.js\",\n    \"navigateHomePageStep\": \"./steps/navigateHomePageStep.js\"\n  }\n}\n```\n\n### Tags\nCodeceptJS offers the ability to group scenarios using tags. This gives you\ngreater flexibility in how you organize tests.\n\n```javascript\nScenario('Navigate to Home Page @home', () =\u003e {});\n```\nTo run based on tags, execute `codeceptjs run --grep @tagName`. [CodeceptJS](http://codecept.io/advanced/)\nalso provides more advanced regex filtering.\n\n* `--grep (?=.*@smoke2)(?=.*@smoke3)` - run tests with @smoke2 and @smoke3 in name\n* `--grep @smoke2|@smoke3` - run tests with @smoke2 or @smoke3 in name\n* `--grep ((?=.*@smoke2)(?=.*@smoke3))|@smoke4` - run tests with (@smoke2 and @smoke3) or @smoke4 in name\n* `--grep (?=.*@smoke2)^(?!.*@smoke3)` - run tests with @smoke2 but without @smoke3 in name\n\n### Reporters\nCodeceptJS offers a few different [reporter options](http://codecept.io/reports/).\nThis repo is set up with [mochawesome](https://github.com/adamgruber/mochawesome),\na tool for generating HTML reports.\n\n### Docker-Compose\nThis project comes with the ability to run tests in a Docker container via\ndocker-compose. It uses the Docker image from the [Codeception team](https://hub.docker.com/r/codeception/codeceptjs/),\nand provides all of the necessary dependencies to run tests.\n\nRun `docker-compose up -d codeceptjs` then `docker-compose run --rm codeceptjs`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoduscreateorg%2Fcodeceptjs-nightmare-harness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoduscreateorg%2Fcodeceptjs-nightmare-harness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoduscreateorg%2Fcodeceptjs-nightmare-harness/lists"}