{"id":21126544,"url":"https://github.com/lreimer/continuous-atdd","last_synced_at":"2026-05-06T17:34:37.357Z","repository":{"id":71906607,"uuid":"337532320","full_name":"lreimer/continuous-atdd","owner":"lreimer","description":"Continuous ATDD on K8s using Geb and Selenium Hub","archived":false,"fork":false,"pushed_at":"2021-05-11T14:19:49.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-21T17:43:50.923Z","etag":null,"topics":["atdd","continuous-integration","geb","kubernetes","selenium","selenium-hub","selenium-java"],"latest_commit_sha":null,"homepage":"","language":"Groovy","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/lreimer.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":"2021-02-09T20:47:57.000Z","updated_at":"2021-05-11T14:19:51.000Z","dependencies_parsed_at":"2023-12-27T16:00:27.202Z","dependency_job_id":null,"html_url":"https://github.com/lreimer/continuous-atdd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lreimer/continuous-atdd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreimer%2Fcontinuous-atdd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreimer%2Fcontinuous-atdd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreimer%2Fcontinuous-atdd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreimer%2Fcontinuous-atdd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lreimer","download_url":"https://codeload.github.com/lreimer/continuous-atdd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lreimer%2Fcontinuous-atdd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32704539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["atdd","continuous-integration","geb","kubernetes","selenium","selenium-hub","selenium-java"],"created_at":"2024-11-20T04:42:28.880Z","updated_at":"2026-05-06T17:34:37.341Z","avatar_url":"https://github.com/lreimer.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Continuous ATDD on K8s\n\nContinuous ATDD on K8s using the Geb Framework and Selenium Hub.\n\n## Usage\n\nFirst, we need to deploy the required Selenium infrastructure to K8s. The Selenium\nhub is required, and also at least one browser node.\n```bash\n# deploy the Selenium hub to connect to\n$ kubectl create ns selenium-hub\n$ kubectl apply -f src/test/kubernetes/selenium-hub.yaml -n selenium-hub\n\n# either deploy Chrome or Firefox or both (if you have enough memory)\n$ kubectl apply -f src/test/kubernetes/selenium-node-chrome.yaml -n selenium-hub\n$ kubectl apply -f src/test/kubernetes/selenium-node-firefox.yaml -n selenium-hub\n\n# use port forwarding to Selenium Hub for local execution\n$ kubectl port-forward service/selenium-hub 4444 -n selenium-hub\n```\n\nNext, we can run the Geb UI tests using either local or remote browsers.\n```bash\n$ ./gradlew testClasses\n\n$ ./gradlew chromeTest          # local Chrome with UI\n$ ./gradlew chromeHeadlessTest  # local Chrome in headless mode\n$ ./gradlew firefoxTest         # local Firefox with UI\n\n$ ./gradlew chromeRemote        # remote Chrome running in K8s\n$ ./gradlew firefoxRemote        # remote Firefox running in K8s\n```\n\nOf course, we can also run the Geb test from within the cluster as a Cronjob or\nas an adhoc pod.\n```bash\n$ docker build -t lreimer/continuous-atdd:latest .\n$ docker push\n\n# either run continuously using cronjob\n$ kubectl apply -f src/test/kubernetes/chrome-remote-cronjob.yaml -n selenium-hub\n$ kubectl apply -f src/test/kubernetes/firefox-remote-cronjob.yaml -n selenium-hub\n\n# or run adhoc pods\n$ kubectl run chrome-remote-test --image lreimer/continuous-atdd:latest --restart=Never --attach --env=\"SELENIUM_HUB_HOST=selenium-hub\" --env=\"SELENIUM_HUB_PORT=4444\" --command -- ./gradlew chromeRemote\n$ kubectl delete pod/chrome-remote-test\n\n$ kubectl run firefox-remote-test --image lreimer/continuous-atdd:latest --restart=Never --attach --env=\"SELENIUM_HUB_HOST=selenium-hub\" --env=\"SELENIUM_HUB_PORT=4444\" --command -- ./gradlew firefoxRemote\n$ kubectl delete pod/firefox-remote-test\n```\n\n## References\n\n- https://github.com/kubernetes/examples/tree/master/staging/selenium\n\n## Maintainer\n\nM.-Leander Reimer (@lreimer), \u003cmario-leander.reimer@qaware.de\u003e\n\n## License\n\nThis software is provided under the MIT open source license, read the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flreimer%2Fcontinuous-atdd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flreimer%2Fcontinuous-atdd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flreimer%2Fcontinuous-atdd/lists"}