Gauge is not saving screenshots when running in docker container #2084
bart-brodz
started this conversation in
General
Replies: 1 comment 1 reply
-
For headless docker based environment's you must have |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm running Gauge UI tests in docker using template form:
https://github.com/getgauge/template-js
My tests are executing in docker container, but it seems that gauge has problems with saving them to screenshots output directory.
When running test locally on Windows or Linux screenshots are saved to appropriate directories.
gauge.log:
The problem was occurring even when property
gauge_screenshots_dir = screenshots
wasn't set indefault.properies
, the path in error log was:/gauge/.gauge/screenshots/screenshot-84371848003397.png
In
index.html
fromhtml-report
screenshots are not displaying, because there are no image files inhtml-report/images/
directory.I also exec'd into running container during tests, and neither of these directories contained screenshot files.
I don't have any
gauge.customScreenshotWriter
implementation in code.Did anybody have similar problem or could point me to what cam be wrong in my configuration?
My configuration:
Dockerfile:
Content is the same as in the template file.
package.json:
manifest.json:
default.properties:
Beta Was this translation helpful? Give feedback.
All reactions