Skip to content

Commit

Permalink
add docs about test image
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronmi committed Mar 5, 2019
1 parent e8f3968 commit 6fec34e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ func main() {
}
```

# Helper Docker image

There's a Docker image hosted at [Docker Hub](https://hub.docker.com/r/ronmi/go-firefox).
It is a helper for me (and projects using marionette-go, maybe) to run tests at local machine or docker based CI env like [DroneCI](https://drone.io).

The image accepts 3 envvars

- `GO_VER`: Go version to download, like `1.11.5`.
- `FX_VER`: Firefox version to download, like `65.0.1`.
- `XVFB`: Disable headless mode, use xvfb instead.

Refer `dev-test.sh` and `.drone.yaml` for example usage of this image.

# Pitfalls

- The behavier of screenshot commands varies with versions and headless mode.
Expand Down

0 comments on commit 6fec34e

Please sign in to comment.