{"id":16101521,"url":"https://github.com/mendhak/docker-smashtest","last_synced_at":"2026-01-20T03:08:32.044Z","repository":{"id":141194601,"uuid":"402207488","full_name":"mendhak/docker-smashtest","owner":"mendhak","description":"Smashtest package inside a Docker container.  This repo also contains sample code.","archived":false,"fork":false,"pushed_at":"2024-01-25T19:18:40.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:38:50.025Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mendhak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-01T21:26:57.000Z","updated_at":"2021-09-30T16:39:42.000Z","dependencies_parsed_at":"2024-01-25T20:30:32.876Z","dependency_job_id":"3b57432c-36f3-4c4c-9a0d-47c4a454cd5a","html_url":"https://github.com/mendhak/docker-smashtest","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdocker-smashtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdocker-smashtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdocker-smashtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mendhak%2Fdocker-smashtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mendhak","download_url":"https://codeload.github.com/mendhak/docker-smashtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419638,"owners_count":20936009,"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-10-09T18:50:11.817Z","updated_at":"2026-01-20T03:08:27.025Z","avatar_url":"https://github.com/mendhak.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[This Docker image](https://hub.docker.com/r/mendhak/smashtest) contains the [Smashtest](https://github.com/smashtestio/smashtest) CLI.  \n\nIt is meant to be run as part of a local Docker development environment, or as part of a CI job, against a Selenium Grid. \n\nExample, if you've got your `.smash` files in the current directory and optionally a `smashtest.json`.  \n\n```\n# by default runs the `smashtest` command\ndocker run -v ${PWD}:/code --rm mendhak/smashtest  \n\n# or be explicit\ndocker run -v ${PWD}:/code --rm mendhak/smashtest  smashtest\n```\n\nYou can also use the same [command line arguments as Smashtest](https://smashtest.io/running-tests/command-line-options):\n\n```\ndocker run -v ${PWD}:/code --rm mendhak/smashtest smashtest --help\n```\n\n\n## Samples\n\nTo run these samples, [clone this repo](https://github.com/mendhak/docker-smashtest), which provides a smashtest file, a smashtest.json, and some docker compose files.  \n\n\n## Docker Compose sample, including a local Selenium Grid\n\nStart the grid first.\n\n```\ndocker-compose -f docker-compose.grid.yml up\n```\n\nThen run the Smashtests against that grid\n\n```\ndocker-compose -f docker-compose.smashtest.yml run --rm testrunner\n```\n\n## Docker Run sample, including a local Selenium Grid\n\nStart the grid first.\n\n```\ndocker-compose -f docker-compose.grid.yml up\n```\n\nThen run the Smashtests against that grid\n\n```\ndocker run -it --network seleniumgrid  -v ${PWD}:/code --rm mendhak/smashtest\n```\n\n## Motivation\n\nI've created this image because an official one isn't provided.    \nI didn't want to install the package globally as it's [a bad practice](https://code.mendhak.com/npm-install-globally-is-bad/).   \nI wanted to save time on installing the package locally on each test run by just using a container.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendhak%2Fdocker-smashtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmendhak%2Fdocker-smashtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmendhak%2Fdocker-smashtest/lists"}