garris / BackstopJS

Catch CSS curve balls.

Home Page:http://backstopjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reporting a better error message in test.js

racer2207 opened this issue · comments

I was getting the error Testing script failed with code: 1. when attempting to create the reference images with npm run reference. I'm on a win32 platform and finally figured out the real issue by adding the following code to the test.js file.

casperChild.stderr.on('data', function (data){ console.log("CasperJS:" + data.toString()); });

Turns out that CasperJS requires Python.exe to be on the machine. Once I loaded that dependency everything worked great.

Thank you for posting the solution to this! I'd like to add this note to the documentation. Would you mind telling me what resource you used to install python? e.g. the command, version, repo, etc.

I installed the latest version of Python from www.python.org. The direct link is Download Python 3.5.1

From there I just installed their software suite and made sure my PATH variable included python.exe. Someone could do a custom install and only add python.exe.

Thanks!