{"id":18360838,"url":"https://github.com/unb-libraries/docker-cypress","last_synced_at":"2025-04-10T03:38:01.233Z","repository":{"id":138628741,"uuid":"525908811","full_name":"unb-libraries/docker-cypress","owner":"unb-libraries","description":"Cypress Docker image including default configuration.","archived":false,"fork":false,"pushed_at":"2022-11-23T15:01:59.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"10.x-1.x","last_synced_at":"2025-02-15T18:53:37.488Z","etag":null,"topics":[],"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/unb-libraries.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":"2022-08-17T18:22:40.000Z","updated_at":"2022-09-12T17:50:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"275de2d7-78c5-43e7-b0ad-fce7c3f6bd38","html_url":"https://github.com/unb-libraries/docker-cypress","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/unb-libraries%2Fdocker-cypress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdocker-cypress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdocker-cypress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unb-libraries%2Fdocker-cypress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unb-libraries","download_url":"https://codeload.github.com/unb-libraries/docker-cypress/tar.gz/refs/heads/10.x-1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154012,"owners_count":21056534,"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":[],"created_at":"2024-11-05T22:29:57.154Z","updated_at":"2025-04-10T03:38:01.208Z","avatar_url":"https://github.com/unb-libraries.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unb-libraries/docker-cypress\nA Cypress docker image that provides basic configuration to add Cypress testing to a dockerized project and development workflow.\n\n## Usage\nGiven a project layout similar to the following:\n\n```\nproject_root/\n├─ src/\n├─ tests/\n│  ├─ cypress/\n│  │  ├─ e2e/\n│  │  │  ├─ spec_1.cy.js\n│  │  │  ├─ spec_2.cy.js\n├─ Dockerfile\n├─ docker-compose.yml\n\n```\nIn a docker-compose project, set the `BASE_URL` environment variable to your app container's address. This will be used as the `baseUrl` in all Cypress tests. Mount cypress specs as a volume.\n```\n  services:\n      app:\n        ...\n        networks:\n          - appnet\n  \n      cypress:\n        image: ghcr.io/unb-libraries/cypress:10.x-1.x\n        environment:\n          - BASE_URL=http://app\n        volumes:\n          - ./tests/cypress/e2e:/cypress/e2e\n        networks:\n          - appnet\n  \n  networks:\n    - appnet\n      \n```\n\n## Run\nExecute tests and display the latest results as follows:\n```\ndocker start \u003cCYPRESS_CONTAINER_NAME\u003e \u0026\u0026 docker logs -f --since 0s \u003cCYPRESS_CONTAINER_NAME\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funb-libraries%2Fdocker-cypress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funb-libraries%2Fdocker-cypress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funb-libraries%2Fdocker-cypress/lists"}