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.

Tests complete, but HTML report isn't updated

See original GitHub issue

My tests run correctly, and new images are generated in the bitmaps_test directory, but the html_report isn’t being generated/updated.

So, the backstory: I’m doing a major rework of my CSS in a branch (converting from Less to PostCSS). I discovered Backstop, and thought I could use it to help me catch mistakes in the conversion. I went into my master branch, setup Backstop, and it seemed to work perfectly. I then merged those changes (including bitmaps_references) into the working branch. Now, when I run tests, most of them fail (expected, as I’m mid-process), but the HTML report isn’t being generated.

There are no errors logged, but there are a lot of test failures, as expected. Then output just stops. There is no “tests completed” or pass/fail count logged, and no browser report. The final lines of output:

compare | OK: Components igw_Components_1_kss-modifier__example__n1_0_medium.png
compare | ERROR { size: isDifferent, content: 0.00%, threshold: 0.1% }: Components igw_Components_5_kss-modifier__example__n5_0_medium.png
   See: /Users/kgrant/src/web/icegroupweb-styles/backstop_data/bitmaps_test/20161130-132948/failed_diff_igw_Components_5_kss-modifier__example__n5_0_medium.png
compare | ERROR { size: isDifferent, content: 0.00%, threshold: 0.1% }: Components igw_Components_4_kss-modifier__example__n4_0_medium.png
   See: /Users/kgrant/src/web/icegroupweb-styles/backstop_data/bitmaps_test/20161130-132948/failed_diff_igw_Components_4_kss-modifier__example__n4_0_medium.png
compare | ERROR { size: isDifferent, content: 0.00%, threshold: 0.1% }: Components igw_Components_3_kss-modifier__example__n3_0_medium.png
   See: /Users/kgrant/src/web/icegroupweb-styles/backstop_data/bitmaps_test/20161130-132948/failed_diff_igw_Components_3_kss-modifier__example__n3_0_medium.png
compare | ERROR { size: isDifferent, content: 0.00%, threshold: 0.1% }: Components igw_Components_2_kss-modifier__example__n2_0_medium.png
   See: /Users/kgrant/src/web/icegroupweb-styles/backstop_data/bitmaps_test/20161130-132948/failed_diff_igw_Components_2_kss-modifier__example__n2_0_medium.png
compare | ERROR { size: ok, content: 2.69%, threshold: 0.1% }: Components igw_Components_0_kss-modifier__example_0_medium.png
   See: /Users/kgrant/src/web/icegroupweb-styles/backstop_data/bitmaps_test/20161130-132948/failed_diff_igw_Components_0_kss-modifier__example_0_medium.png
compare | ERROR { size: isDifferent, content: 55.25%, threshold: 0.1% }: Components igw_Components_7_kss-modifier__example__n7_0_medium.png
   See: /Users/kgrant/src/web/icegroupweb-styles/backstop_data/bitmaps_test/20161130-132948/failed_diff_igw_Components_7_kss-modifier__example__n7_0_medium.png
compare | ERROR { size: isDifferent, content: 9.01%, threshold: 0.1% }: Components igw_Components_29_kss-modifier__example__n29_0_medium.png
   See: /Users/kgrant/src/web/icegroupweb-styles/backstop_data/bitmaps_test/20161130-132948/failed_diff_igw_Components_29_kss-modifier__example__n29_0_medium.png
$

It’s possible there are a different number of generated images now, though I‘m not certain. Could this be caused by an inability to match up reference images to test images 1:1?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Bobrovskihcommented, Dec 23, 2020

I didn’t get the report either v4.4.2 or v5.0.7. I spent a lot of time searching and debugging. In the end, I changed the parameter asyncCompareLimit: 25 (before it was 50) and the problem solved.

1reaction
garriscommented, Jan 10, 2019

Here is a sanity test you can run to test if the docker implementation is working in your environment…

https://github.com/garris/BackstopJS/blob/master/README.md#sanity-test-does-backstop-work-in-my-environment

Does this work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReportNG HTML report not updating - java
xml file. I have coded in Java and used Selenium and TestNG. My tests all run successfully. My only problem is that the...
Read more >
HIV Testing | HIV/AIDS
HIV Tests for Screening and Diagnosis. HIV tests are very accurate, but no test can detect the virus immediately after infection. How soon...
Read more >
Test coverage visualization - GitLab Docs
With the help of GitLab CI/CD, you can collect the test coverage information of your favorite testing or coverage-analysis tool, and visualize this ......
Read more >
Working with reports - AWS CodeBuild
A report contains the results of test cases that are specified for one report group. A test report is created during the run...
Read more >
Mocha - the fun, simple, flexible JavaScript test framework
Installation · Getting Started · Run Cycle Overview · Detects Multiple Calls to done() · Assertions · Asynchronous Code · Synchronous Code ·...
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