Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests from command line and save results to a folder? #8

Open
jfkthame opened this issue May 28, 2016 · 1 comment
Open

Run tests from command line and save results to a folder? #8

jfkthame opened this issue May 28, 2016 · 1 comment

Comments

@jfkthame
Copy link
Collaborator

The test page/script is awesome, but I've been thinking it might also be nice (and less resource-hungry for the browser) to have the option of running tests in a "batch" mode from the command line, generating a report similar to the current test page (but as a static file), with the test images and difference saved to an associated folder as a collection of PNGs.

This would allow us to have a "make check" command that runs the tests and reports a summary of the stats, and the results could then be reviewed in the browser at leisure. It might also make it easier to explore alternative image-diffing tools as part of the test script -- it would be nice if we could find a tool that can be "tuned" to report fewer failures where the only discrepancy is along the fringes of areas, while still detecting "real" differences. (E.g. maybe ImageMagick's compare tool could be useful?)

@timdream
Copy link
Contributor

Right. Being able to use other image processing tools (e.g. OpenCV edge detection) would be nicer than trapping ourselves in the browser.

It shouldn't be hard to extract screenshots with SlimerJS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants