{"id":17254432,"url":"https://github.com/mtlynch/hello-world-cypress","last_synced_at":"2025-03-22T18:34:28.745Z","repository":{"id":54889568,"uuid":"179484951","full_name":"mtlynch/hello-world-cypress","owner":"mtlynch","description":"A simple example of using Cypress.io for end-to-end testing","archived":false,"fork":false,"pushed_at":"2022-09-13T00:33:43.000Z","size":32,"stargazers_count":56,"open_issues_count":0,"forks_count":65,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-16T07:08:50.586Z","etag":null,"topics":["cypress","docker","docker-compose","e2e-tests"],"latest_commit_sha":null,"homepage":"https://mtlynch.io/painless-web-app-testing/","language":"Go","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/mtlynch.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-04-04T11:33:34.000Z","updated_at":"2024-08-30T15:22:19.000Z","dependencies_parsed_at":"2022-08-14T05:50:40.694Z","dependency_job_id":null,"html_url":"https://github.com/mtlynch/hello-world-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/mtlynch%2Fhello-world-cypress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtlynch%2Fhello-world-cypress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtlynch%2Fhello-world-cypress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtlynch%2Fhello-world-cypress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtlynch","download_url":"https://codeload.github.com/mtlynch/hello-world-cypress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221832421,"owners_count":16888243,"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":["cypress","docker","docker-compose","e2e-tests"],"created_at":"2024-10-15T07:08:52.771Z","updated_at":"2024-10-28T13:34:15.249Z","avatar_url":"https://github.com/mtlynch.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hello-world-cypress\n\n## Overview\n\nThis repo shows a basic example of using Cypress and Docker Compose to create simple end-to-end tests for any web application. This example uses a Go application, but you can reuse the pattern in this repository for any web application that can run in Docker.\n\nFor more information, see the blog post, [\"Easy End-to-End Testing with Cypress.\"](https://mtlynch.io/painless-web-app-testing)\n\n## Run the test app\n\nThe example application is called Sentimentalyzer, a very rudimentary text sentiment analyzer. To run it, enter the following commands:\n\n```bash\ndocker build --tag sentimentalyzer .\ndocker run \\\n  --interactive \\\n  --tty \\\n  --env PORT=8123 \\\n  --publish 8123:8123 \\\n  sentimentalyzer\n```\n\nThe app will be running on [localhost:8123](http://localhost:8123).\n\n## Run end-to-end tests\n\nTo execute the end-to-end tests for Sentimentalyzer, enter the following commands:\n\n```bash\ncd e2e\ndocker-compose up --abort-on-container-exit --exit-code-from cypress\n```\n\nWhen the command completes, you will see test output on the console and a video of the test run will appear in the folder `e2e/cypress/integration/videos`.\n\n## Other branches\n\nThis repo contains several branches to demonstrate different Cypress scenarios:\n\n| Scenario | Branch |\n|----------|---------|\n| [Basic Cypress example](https://github.com/mtlynch/hello-world-cypress) | [`master`](https://github.com/mtlynch/hello-world-cypress) |\n| [Using Cypress with Chrome browser](https://github.com/mtlynch/hello-world-cypress/tree/chrome) | [`chrome`](https://github.com/mtlynch/hello-world-cypress/tree/chrome) |\n| [Running Cypress from within Circle CI](https://github.com/mtlynch/hello-world-cypress/tree/circle) | [`circle`](https://github.com/mtlynch/hello-world-cypress/tree/circle) |\n| [Running Cypress from within Travis CI](https://github.com/mtlynch/hello-world-cypress/tree/travis) | [`travis`](https://github.com/mtlynch/hello-world-cypress/tree/travis) |\n| [Running Cypress in interactive mode](https://github.com/mtlynch/hello-world-cypress/tree/interactive) | [`interactive`](https://github.com/mtlynch/hello-world-cypress/tree/interactive) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtlynch%2Fhello-world-cypress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtlynch%2Fhello-world-cypress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtlynch%2Fhello-world-cypress/lists"}