{"action":"created","issue":{"url":"https://api.github.com/repos/garris/BackstopJS/issues/90","labels_url":"https://api.github.com/repos/garris/BackstopJS/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/garris/BackstopJS/issues/90/comments","events_url":"https://api.github.com/repos/garris/BackstopJS/issues/90/events","html_url":"https://github.com/garris/BackstopJS/issues/90","id":105744141,"number":90,"title":"Add an explicit gulp task to compare images","user":{"login":"klausbayrhammer","id":1397470,"avatar_url":"https://avatars.githubusercontent.com/u/1397470?v=3","gravatar_id":"","url":"https://api.github.com/users/klausbayrhammer","html_url":"https://github.com/klausbayrhammer","followers_url":"https://api.github.com/users/klausbayrhammer/followers","following_url":"https://api.github.com/users/klausbayrhammer/following{/other_user}","gists_url":"https://api.github.com/users/klausbayrhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/klausbayrhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klausbayrhammer/subscriptions","organizations_url":"https://api.github.com/users/klausbayrhammer/orgs","repos_url":"https://api.github.com/users/klausbayrhammer/repos","events_url":"https://api.github.com/users/klausbayrhammer/events{/privacy}","received_events_url":"https://api.github.com/users/klausbayrhammer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-10T07:05:17Z","updated_at":"2015-10-19T08:20:42Z","closed_at":"2015-09-22T01:34:47Z","body":"We are currently trying to integrate backstop tests into our CI/CD pipeline but the problem is that I currently don't see a way to pass the results of a backstop test to the gulp task (or the caller).\r\n\r\nIs it correct that the comparison of reference and test images in done on the fly in `compare.js#compareTestPair`? What we'd require is a gulp task (or some kind of CLI) to explicitly trigger the image comparison and retrieve the result as a return value. Our overall goal is to run the backstop tests on our build servers and stop our build when errors occured.\r\n\r\nProbably this is related to #32 and maybe we could use [node-resemble-js](https://www.npmjs.com/package/node-resemble-js) to compare the images."},"comment":{"url":"https://api.github.com/repos/garris/BackstopJS/issues/comments/149140481","html_url":"https://github.com/garris/BackstopJS/issues/90#issuecomment-149140481","issue_url":"https://api.github.com/repos/garris/BackstopJS/issues/90","id":149140481,"user":{"login":"klausbayrhammer","id":1397470,"avatar_url":"https://avatars.githubusercontent.com/u/1397470?v=3","gravatar_id":"","url":"https://api.github.com/users/klausbayrhammer","html_url":"https://github.com/klausbayrhammer","followers_url":"https://api.github.com/users/klausbayrhammer/followers","following_url":"https://api.github.com/users/klausbayrhammer/following{/other_user}","gists_url":"https://api.github.com/users/klausbayrhammer/gists{/gist_id}","starred_url":"https://api.github.com/users/klausbayrhammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klausbayrhammer/subscriptions","organizations_url":"https://api.github.com/users/klausbayrhammer/orgs","repos_url":"https://api.github.com/users/klausbayrhammer/repos","events_url":"https://api.github.com/users/klausbayrhammer/events{/privacy}","received_events_url":"https://api.github.com/users/klausbayrhammer/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T08:20:42Z","updated_at":"2015-10-19T08:20:42Z","body":"Yes that's exactly what I was looking for! Probably we could add a `--dry-run` flag which supports the current (non failing) behaviour? If that's ok for you I'd send you a PR."}}