Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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 \
chromium-driver \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ 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
```

## Testing Watir

You can quickly verify that Watir is working inside the container by running a small script.
Expand All @@ -58,5 +66,4 @@ Run the script inside the container with:

```bash
bundle exec ruby test_browser.rb
```

```
Loading