HuddleEng / PhantomCSS

Visual/CSS regression testing with PhantomJS
MIT License
4.72k stars 259 forks source link

Add options.addIteratorToImage #147

Closed bbarwick-fdg closed 8 years ago

bbarwick-fdg commented 8 years ago

This update allows option to suppress the iterator in screenshot filenames by setting the option addIteratorToImage: false.

bbarwick-fdg commented 8 years ago

Excluding the iterator in filenames prevents the screenshots from being renamed each time the order of the tests is changed in the test script(s). When there are a large number of tests, this is helpful to prevent duplicates and tracking which screenshots are freshly rendered. Deleting the directory that contains the screenshots is an option to start fresh but committing baseline images to the repo will have to be done each time a test is reordered or a test is removed from the suite.