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.

BackstopJS Report doesn't fire up after more than 999 tests

See original GitHub issue

Hey @garris,

At 1000 tests and more, the BackstopJS Report doesn’t work anymore. I tested it locally at 999 it works and at 1000 it fails.

I don’t have any errors.

This what I get in the CMD :

CasperJS:  Ready event received.
CasperJS:  Current location is http://localhost:4000/documentation/3.3/composantes.html?backstop=tru
e#graphiques
CasperJS:  Capturing screenshots for desktop (1280x1014)
CasperJS:  Ready event received.
CasperJS:  Current location is http://localhost:4000/documentation/3.3/composantes.html?backstop=tru
e&touch=true#graphiques
CasperJS:  Capturing screenshots for phone (320x480)
CasperJS:  Ready event received.
CasperJS:  Current location is http://localhost:4000/documentation/3.3/composantes.html?backstop=tru
e&touch=true#graphiques
CasperJS:  Capturing screenshots for tablet_v (768x1024)
CasperJS:  Ready event received.
CasperJS:  Current location is http://localhost:4000/documentation/3.3/composantes.html?backstop=tru
e&touch=true#graphiques
CasperJS:  Capturing screenshots for tablet_h (1024x768)
CasperJS:  Ready event received.
CasperJS:  Current location is http://localhost:4000/documentation/3.3/composantes.html?backstop=tru
e&touch=true#graphiques
CasperJS:  Capturing screenshots for desktop (1280x1014)
CasperJS:  Comparison config file updated.

Bitmap file generation completed.
COMMAND | Executing core for `report`

C:\Projets\N3\fwd-webapp-overlay-skin>

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
garriscommented, Nov 9, 2016

@stephenbe I just wanted to follow up. I attempted to throttle concurrent comparisons but the memory leak persisted. I committed this code here https://github.com/garris/BackstopJS/commit/adc2ae2373bdeb99fea6bb0f678da8c044127330 even though this approach did not immediately solve the issue. What I believe is that each resemble object is generating and caching a comparison image – holding that in RAM while all comparisons are running. I think the next thing to try is to refactor this flow such that references to each resemble object are completely cleaned up once a write to fs is complete. I am hoping that would make backstop MUCH more RAM efficient. The good news is that once map is complete all instances are cleaned up and memory is completely returned. So I am confident that this issue is addressable. Will just take a little effort to get the sequencing right.

Would appreciate any help here from anyone who is interested. Otherwise I will try to get to this in January.

1reaction
garriscommented, Nov 4, 2016

Ok. I was able to run the app. After bitmaps were generated the comparison process ran and grew steadily to 5+Gig. Still investigating.

Read more comments on GitHub >

github_iconTop Results From Across the Web

backstopjs - npm
BackstopJS automates visual regression testing of your responsive web UI by comparing DOM screenshots over time. Features: Simulate user ...
Read more >
kanopi/ci-tools - CircleCI Developer Hub
Simple Configuration for running backstopjs visual regression testing. Using a Pantheon Multi-dev url and Posting URL report back to Github.
Read more >
Overview of BackstopJS, a tool to test a web application's UI
In this article, we'll talk about the BackstopJS CSS regression testing framework, and how we integrated it in our business application to ...
Read more >
Visual Regression Testing with BackstopJS - YouTube
Speaker: David NeedhamHow do you tell if a change you made to your website has unintended side effects? Security updates should rarely ...
Read more >
Split system.module.css and system.theme.css files ... - Drupal
Figure out why automated tests fail if there are more than 23 css files in base css ... I'm going to see if...
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