-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Rake task for PR visual regression comparison #459
Conversation
Nice! Should we add something to the Readme so people know they can do this? |
Updated with documentation and a task for comparing master. |
Found an issue with Wraith, documented here: bbc/wraith#536 |
@@ -29,11 +29,13 @@ def build_paths | |||
if @paths.is_a? Hash | |||
@paths.keys.each do |key| | |||
@paths.fetch(key).each_with_index do |path, index| | |||
config_paths[path_index(key, index + 1)] = path | |||
config_paths[path_index(key, index + 1)] = path unless path_blacklisted?(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This currently silently removes config, which could be really confusing. "Why is it not running this path!?" Could we log a message when a path is blacklisted so people know why we've not allowed this path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call.
Compare production and a review app hosted on Heroku. * Pass in a PR number to generate a config and run the test. * Run against the heroku deployment of master * Refactors wraith tasks to DRY up
Paths containing "path" in them break Wraith: bbc/wraith#536 Search API incorrectly returns government-frontend as renderer for travel advice index, this will always give a difference between live and a review app.
Is this PR still relevant now that there's alphagov/govuk-visual-regression#1? |
Compare production and a review app hosted on Heroku. Pass in a PR number to generate a config and run the test.
eg
bundle exec rake wraith:pr[450]
update_document_types
task