question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

errors running backstop commands

See original GitHub issue

I’ve got a backstopjs (version 1.3.5)) running perfectly on my own machine, I can run the npm run reference command to generate the reference screenshots, and I can run the npm run test command without any issues, and it passes or fails when expected (e.g. fails successfully when I modify the CSS for a page)

So I’ve committed the backstop.json file, the bitmaps_reference folder, the bitmaps_test folder, (but only the compare.json file in here, not the test screenshots) and the capser_scripts directories in the backstop_data folder, to Git.

However, my colleagues are not able to run backstop. My colleague has pulled, and has the files/folders specified above. They have run npm install and have Backstop installed. When they try to run the npm run test command, they see this output:

npm run test

backstopjs@1.3.5 test fakepath\node_modules\backstopjs gulp test

BackstopJS Config loaded at location fakepath\backstop.json [11:14:55] Using gulpfile fakepath\node_modules\backstopjs\gulpfile.js [11:14:55] Starting ‘init’… [11:14:55] Finished ‘init’ after 82 μs [11:14:55] Starting ‘test’… gulp.run() has been deprecated. Use task dependencies or gulp.watch task triggering instead. [11:14:55] Starting ‘bless’… [11:14:55] Finished ‘bless’ after 5.05 ms

Running CasperJS with: [ ‘capture/genBitmaps.js’ ] [11:14:55] Finished ‘test’ after 16 ms

Testing script failed with code: 1

Looks like an error occured. You may want to try running $ npm run echo. This will echo the requested >test URL output to the console. You can check this output to verify that the file requested is indeed being received in the expected format.

They also see similar out if trying the npm run reference command.

Any ideas why this would work on my machine, but not work on an identical colleague’s machine?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
DigitalKronycommented, Sep 2, 2016

EDIT Base python install was crap. Adding it into the PATH variables did the trick.

0reactions
garriscommented, Sep 28, 2016

@danwellman thanks for the update! Cheers. Garris

Read more comments on GitHub >

github_iconTop Results From Across the Web

BacktopJS
SMOKE TEST: Are backstop features working ok? ... Run this command if you have made changes to the BackstopJS codebase and you want...
Read more >
testing - Chromium browser failing in docker container ...
I run this command to make the docker container the same as my local environment. I start the shell and then run ember...
Read more >
Overview of BackstopJS, a tool to test a web application's UI
jq is a lightweight and flexible command-line JSON processor. ... Finally run backstop approve whenever an error is spotted but your local ...
Read more >
Visual Regression Testing for Your Web Applications
Go to your project and run this command to initialize BackstopJS: ... file backstop.json where you create the test scenarios for BackstopJS.
Read more >
Testing web projects with BackstopJS
This command will create a configuration file backstop.json and a ... and then fix errors and run a test again until all of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found