garris / BackstopJS

Catch CSS curve balls.
http://backstopjs.org
MIT License
6.7k stars 604 forks source link

Question: Support for custom reporters? #1110

Open naddison opened 4 years ago

naddison commented 4 years ago

This is a question, not an issue.

Is backstop extensible via configuration? Can I implement a custom reporter (similiar to the XML output) and include it via configuration, and would that reporter have hooks it would have to implement?

garris commented 4 years ago

Hi @naddison. The answer to your question is: not really -- that said you could easily integrate at a higher level. Backstop generates a JSON file you can read -- so it would be straightforward for you to say, import backstop as an NPM module into your testing app and tell backstop to skip opening the browser report. When the backstop promise resolves you can simply have your app read the json results and take over from there.

Another approach: There is also an ember-backstop plugin which demonstrates how backstop can be integrated into other (3rd party) app reporters (in that case, testem).

Hope that helps.