{"id":28967621,"url":"https://github.com/su-sws/wraith_tests","last_synced_at":"2025-06-24T08:09:41.380Z","repository":{"id":34875811,"uuid":"38885454","full_name":"SU-SWS/wraith_tests","owner":"SU-SWS","description":"Repository of wraith visual regression tests","archived":false,"fork":false,"pushed_at":"2019-09-18T22:21:43.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-07T01:49:27.956Z","etag":null,"topics":["visual-regression-tests","wraith"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SU-SWS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.TXT","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-10T14:46:55.000Z","updated_at":"2024-04-07T01:49:27.957Z","dependencies_parsed_at":"2022-09-15T11:51:45.602Z","dependency_job_id":null,"html_url":"https://github.com/SU-SWS/wraith_tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SU-SWS/wraith_tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SU-SWS%2Fwraith_tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SU-SWS%2Fwraith_tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SU-SWS%2Fwraith_tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SU-SWS%2Fwraith_tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SU-SWS","download_url":"https://codeload.github.com/SU-SWS/wraith_tests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SU-SWS%2Fwraith_tests/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261632137,"owners_count":23187273,"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":["visual-regression-tests","wraith"],"created_at":"2025-06-24T08:09:40.713Z","updated_at":"2025-06-24T08:09:41.358Z","avatar_url":"https://github.com/SU-SWS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wraith Tests\nMaintainers: [jbickar](https://github.com/jbickar), [sherakama](https://github.com/sherakama)\n\n[Changelog.txt](CHANGELOG.txt)\n\n## Installation\n\n```\nbrew install phantomjs\nbrew install imagemagick\nbrew install casperjs --devel\ngem install wraith\n```\nSee \"Other Resources\" below for more in-depth installation instructions.\n\n## Usage\n\n### Setting Up a New Project\n\n1. Copy a recently-committed directory to a new location at the root of the repo (e.g., `cp -r registrar newproject`)\n2. Edit `newproject/configs/config.yaml` to update the `domains` and `paths` to what you want for your new project.\n3. Edit `newproject/configs/history.yaml` to update the `domains` and `paths` to what you want for your new project.\n4. Optionally, edit the `screen_widths` and other settings\n\n### Running Visual Regression Tests of a Site Across Two Environments\n\n1. `cd myproject`\n2. `wraith capture config` (`config` is the name of the YML file in the `configs` directory.  You could name it `foo.yaml` and then run `wraith capture foo`.)\n3. `open shots/gallery.html`\n4. Review the screenshots in `gallery.html` for differences\n\nNote: If you want to increase the timeout, add the following line to your `config.yaml` file:\n\n```\nbefore_capture: \"../../timeout.js\"\n```\n\n### Running Visual Regression Tests of a Site Against A Historical Baseline\n\n1. `cd myproject`\n2. `wraith history history` to establish a baseline set of screenshots (`history` is the name of the YML file in the `configs` directory.  You could name it `foo.yaml` and then run `wraith history foo`.)\n3. `wraith latest history` to compare the latest versions against the baseline.\n4. `open shots/gallery.html`\n5. Review the screenshots in `gallery.html` for differences\n\n\n## Other Resources\n\n- [See Pantheon's excellent wraith tutorial](https://pantheon.io/docs/guides/visual-diff-with-wraith/)\n- [See wraith on BBC's github](https://github.com/BBC-News/wraith)\n- [See BBC's wraith documentation](http://bbc-news.github.io/wraith/index.html)\n\n## Fix for SSL errors and self signed certificates\nhttps://gist.github.com/sherakama/986c546f1dade4626b61#file-save_images-rb-L42\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsu-sws%2Fwraith_tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsu-sws%2Fwraith_tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsu-sws%2Fwraith_tests/lists"}