Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM --platform=$TARGETPLATFORM ruby:3.2.2-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
chromium \
xvfb \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ docker run -it --rm -v ~/lets-qa/acceptance:/app test-runner:amd64 bash
This command launches the container with the current working directory set
to `/app`, where your tests are mounted. From there you can run any
commands you need, such as `bundle exec cucumber` or `bundle exec rspec`.

If your tests require an X server, you can prefix the test command with
`xvfb-run` to run them in a virtual framebuffer. For example:

```bash
xvfb-run bundle exec rspec
```