drevops / vortex

🌀 Drupal project template
https://vortex.drevops.com
GNU General Public License v3.0
83 stars 19 forks source link

Add integration with Diffy for Visual Regression #131

Open AlexSkrypnyk opened 6 years ago

AlexSkrypnyk commented 6 years ago

Once deployed environment reported that site is online, call Diffy API and trigger VR test for current environment.

Also, add visual test for admin areas

--

If you use CLI you can run something like: diffy project:compare PROJECT_ID prod stage --wait to wait for Diffy to complete the job. You get a diff ID as a response. So then you can run diffy diff:get-result DIFF_ID to get the results. You can even have them in junit format if you like. Alternatively, you can call diffy diff:get-changes-percent DIFF_ID to see the amount of changes. Then based on the diff's info you can proceed with your deployment. Please check diff commands source for more details.

AlexSkrypnyk commented 9 months ago

https://github.com/DiffyWebsite/diffy-acquia/blob/master/hooks/diffy/diffy_trigger_compare_job.php