Skip to content

Commit

Permalink
docs(tests): additional run steps and info
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Oct 1, 2021
1 parent fd59ef0 commit f5c26f2
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions docs/getting-started/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,33 @@ See the [`cypress` Command Line](https://docs.cypress.io/guides/guides/command-l

### Using Docker Compose

Run the tests with Docker Compose, from inside the `localhost` directory, against the `client` service:
Run the tests with Docker Compose against the `client` service:

First ensure your `.env` file has an updated `CYPRESS_baseUrl` variable:

```env
# using the Docker Compose service address
CYPRESS_baseURL=http://client:8000
```

Then from within the `localhost` directory:

```bash
docker compose run tests-e2e
```

### From the Dev Container

`cypress` is installed and available to run in a terminal in the [Dev Container](development.md#vs-code-with-dev-containers).
`cypress` is installed and available to run directly in the devcontainer.

First ensure your `.env` file has an updated `CYPRESS_baseUrl` variable:

```env
# using localhost since we're inside the container
CYPRESS_baseURL=http://localhost:8000
```

From within the `tests/e2e` directory:
Then Rebuild and Reopen, and start the `benefits` app with `F5`. Then from within the `tests/e2e` directory:

```bash
npx cypress run
Expand Down

0 comments on commit f5c26f2

Please sign in to comment.