-
Notifications
You must be signed in to change notification settings - Fork 58
Output image diffs #31
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
Comments
hi, can you provide your test script and your configuration? also try to run the debug mode, there you can see were the tool tries to store the image. |
Hi. I added a function to compare images of different sizes. IMagick would throw an exception, if you compare images which have no equal width and height parameters. So you could only see the screenshot of the failed codeception test. Before comparison of the images, they will be normalized in their proportions. Now they produce the comparing image like expected. |
Hi. I just checked out the repository again and ran the visualceptions tests. I I'm running VisualCeption in Ubuntu 12.04 via Vagrant and VirtualBox and I've attached my _log directory after running the bundled visualception This is the output of my run: vagrant@precise64:~/visualception/test/integration$ codecept run Codeception PHP Testing Framework v1.8.0 Powered by PHPUnit 3.7.37 by Sebastian Bergmann. *Acceptance Tests (6) *Error Error Error Error Error Running * (SimpleCept.php)* Time: 6.8 seconds, Memory: 17.00Mb There were 6 errors:
#1 #2 #3 #4 #5 /home/vagrant/visualception/module/VisualCeption.php:50 #6 #7
#1 #2 #3 #4 #5 /home/vagrant/visualception/module/VisualCeption.php:50 #6 #7
#1 #2 #3 #4 #5 /home/vagrant/visualception/module/VisualCeption.php:50 #6 #7
#1 #2 #3 #4 #5 /home/vagrant/visualception/module/VisualCeption.php:50 #6 #7
#1 #2 #3 #4 #5 /home/vagrant/visualception/module/VisualCeption.php:50 #6 #7
#1 #2 #3 #4 #5 /home/vagrant/visualception/module/VisualCeption.php:50 #6 #7 FAILURES! Tests: 6, Assertions: 0, Errors: 6. vagrant@precise64:~/visualception/test/integration$ Also, before running the tests I always have to create the _log directory. Cheers, Jeff On Thu, May 22, 2014 at 10:02 PM, Sebastian Neubert <
|
Oh, ok. It looks like PhantomJS webdriver could not inject the JQuery Javascript framework. In your logs appears line 50 of VisualCeption.php $this->webDriver->executeScript($jQueryString); We used the facebook webdriver to connect with selenium and firefox. First of all, please update codeception. 1.8.0 is a little bit older and there were some nice updates, including webdriver features. 1.8.5 is stable and works fine. Next step, run your tests with the debug option -d. So you can see a little bit more than "error".
If there is really a difference between phantom webdriver and facebook webdriver, there is a problem. Because of the way Visualception works it needs to inject JQuery. In this case: if you are familar with phantom and casper, then try PhantomCSS https://github.com/Huddle/PhantomCSS Maybe it's the better visual regression tool for you. HTH |
I was expecting that I would get an image diff as output when there is an error, similar to the image in the Readme.
Unless I am running the tests incorrectly I am not seeing this as output.
For a complex page it would be helpful to know where exactly on the page the problem is.
The text was updated successfully, but these errors were encountered: