Skip to main content

thermostat develop compare

This command generates visual comparison data for the project frontend and uploads it to Percy for comparison. This is generally used to rigorously check for breakages when making maintenance updates to existing projects, where it is often tedious and unreliable to check all of the website pages manually for differences between the correct output and the actual output after the updates.

This command will automatically build a sitemap of the website to generate a list of pages to be compared. You can use the --dry-run option to preview what the sitemap will look like before actually uploading the pages to Percy, and you can use the --cache-sitemap option to cache the sitemap between runs to speed up the comparison generation process (though the process is usually fast enough that this is not necessary).

In order to be able to run the compare command, you must add the appropriate configuration to the thermostat.yml file, as described here.

Usage:
$ thermostat develop compare

Options:
--dry-run [boolean] Do not upload the comparison to Percy, just output the list of pages and quit.
--cache-sitemap [string] Have the visual compare tool cache the sitemap using a given file path.