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

Reporting a better error message in test.js #185

Closed
racer2207 opened this issue May 3, 2016 · 3 comments
Closed

Reporting a better error message in test.js #185

racer2207 opened this issue May 3, 2016 · 3 comments

Comments

@racer2207
Copy link

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.

@garris
Copy link
Owner

garris commented May 3, 2016

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.

@racer2207
Copy link
Author

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.

@garris
Copy link
Owner

garris commented May 4, 2016

Thanks!

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