Skip to content

Instantly share code, notes, and snippets.

@gilzow
Last active September 14, 2021 12:11
Show Gist options
  • Save gilzow/82157d469500702597e405098c7ab9b8 to your computer and use it in GitHub Desktop.
Save gilzow/82157d469500702597e405098c7ab9b8 to your computer and use it in GitHub Desktop.
Console out from backstop ref+test via backstop --docker
╰─ backstop reference --docker
BackstopJS v5.3.0
Loading config: /Users/gilzowp/Documents/work/test/backstop-debug/backstop.json
COMMAND | Executing core for "reference"
Delegating command to Docker... docker run --rm -it --mount type=bind,source="/Users/gilzowp/Documents/work/test/backstop-debug",target=/src backstopjs/backstopjs:5.3.0 reference "--moby"
BackstopJS v5.3.0
Loading config: /src/backstop.json
COMMAND | Executing core for "reference"
(node:1) ExperimentalWarning: The fs.promises API is experimental
clean | backstop_data/bitmaps_reference was cleaned.
createBitmaps | Selected 5 of 5 scenarios.
CREATING NEW REFERENCE FILE
CREATING NEW REFERENCE FILE
CREATING NEW REFERENCE FILE
Cookie state restored with: []
CREATING NEW REFERENCE FILE
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []
CREATING NEW REFERENCE FILE
Cookie state restored with: []
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > HES
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Identity Photo Guidelines
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > HES
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Identity home
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Identity home
x Close Browser
x Close Browser
CREATING NEW REFERENCE FILE
Cookie state restored with: []
CREATING NEW REFERENCE FILE
Cookie state restored with: []
x Close Browser
x Close Browser
CREATING NEW REFERENCE FILE
Cookie state restored with: []
CREATING NEW REFERENCE FILE
Cookie state restored with: []
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
x Close Browser
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Identity Photo Guidelines
CREATING NEW REFERENCE FILE
Cookie state restored with: []
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Veterans
x Close Browser
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Renewal
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Veterans
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Renewal
x Close Browser
x Close Browser
x Close Browser
x Close Browser
Run `$ backstop test` to generate diff report.
COMMAND | Command "reference" successfully executed in [7.826s]
COMMAND | Command "reference" successfully executed in [9.026s]
╰─ backstop test --docker
BackstopJS v5.3.0
Loading config: /Users/gilzowp/Documents/work/test/backstop-debug/backstop.json
COMMAND | Executing core for "test"
Delegating command to Docker... docker run --rm -it --mount type=bind,source="/Users/gilzowp/Documents/work/test/backstop-debug",target=/src backstopjs/backstopjs:5.3.0 test "--moby"
BackstopJS v5.3.0
Loading config: /src/backstop.json
COMMAND | Executing core for "test"
createBitmaps | Selected 5 of 5 scenarios.
(node:1) ExperimentalWarning: The fs.promises API is experimental
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []
Cookie state restored with: []
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Identity home
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > HES
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Identity home
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Identity Photo Guidelines
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > HES
x Close Browser
x Close Browser
Cookie state restored with: []
Cookie state restored with: []
x Close Browser
Cookie state restored with: []
x Close Browser
Cookie state restored with: []
x Close Browser
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Cookie state restored with: []
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Veterans
Browser Console Log 0: JSHandle:JQMIGRATE: Migrate is installed, version 3.3.2
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Identity Photo Guidelines
x Close Browser
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Veterans
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Renewal
Browser Console Log 0: JSHandle:BackstopTools have been installed.
SCENARIO > Renewal
x Close Browser
x Close Browser
x Close Browser
x Close Browser
COMMAND | Executing core for "report"
compare | OK: Identity home backstop_default_Identity_home_0_document_0_phone.png
compare | OK: Identity Photo Guidelines backstop_default_Identity_Photo_Guidelines_0_document_0_phone.png
compare | OK: HES backstop_default_HES_0_document_0_phone.png
compare | OK: Renewal backstop_default_Renewal_0_document_0_phone.png
compare | OK: Renewal backstop_default_Renewal_0_document_1_desktop.png
compare | OK: Veterans backstop_default_Veterans_0_document_0_phone.png
compare | OK: Veterans backstop_default_Veterans_0_document_1_desktop.png
See: /src/backstop_data/bitmaps_test/20210416-210004/failed_diff_backstop_default_Identity_home_0_document_1_desktop.png
See: /src/backstop_data/bitmaps_test/20210416-210004/failed_diff_backstop_default_HES_0_document_1_desktop.png
compare | ERROR { requireSameDimensions: false, size: isDifferent, content: 9.32%, threshold: 0.1% }: Identity home backstop_default_Identity_home_0_document_1_desktop.png
See: /src/backstop_data/bitmaps_test/20210416-210004/failed_diff_backstop_default_Identity_Photo_Guidelines_0_document_1_desktop.png
compare | ERROR { requireSameDimensions: false, size: isDifferent, content: 16.12%, threshold: 0.1% }: HES backstop_default_HES_0_document_1_desktop.png
compare | ERROR { requireSameDimensions: false, size: isDifferent, content: 6.67%, threshold: 0.1% }: Identity Photo Guidelines backstop_default_Identity_Photo_Guidelines_0_document_1_desktop.png
report | Test completed...
report | 7 Passed
report | 3 Failed
report | Writing jUnit Report
report | jUnit report written to: backstop_data/ci_report/xunit.xml
report | Writing browser report
report | Resources copied
report | Copied json report to: /src/backstop_data/bitmaps_test/20210416-210004/report.json
report | Copied jsonp report to: /src/backstop_data/html_report/config.js
report | *** Mismatch errors found ***
COMMAND | Command "report" ended with an error after [4.236s]
COMMAND | Error: Mismatch errors found.
at /usr/local/lib/node_modules/backstopjs/core/command/report.js:189:17
COMMAND | Command "test" ended with an error after [12.461s]
COMMAND | Error: Mismatch errors found.
at /usr/local/lib/node_modules/backstopjs/core/command/report.js:189:17
COMMAND | Command "test" ended with an error after [13.363s]
COMMAND | Error: docker run --rm -it --mount type=bind,source="/Users/gilzowp/Documents/work/test/backstop-debug",target=/src backstopjs/backstopjs:5.3.0 test "--moby" returned 1
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/backstopjs/core/util/runDocker.js:68:18)
at ChildProcess.emit (node:events:369:20)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
@mihaiposto
Copy link

How did you fix this one? I have the same problem while running backstop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment