Skip to content

Commit 7cfa0f8

Browse files
authored
Merge pull request #195 from marcdel/patch-1
Adds server config to setup section of readme
2 parents f19205d + 39edc33 commit 7cfa0f8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ ExUnit.start()
6464

6565
When you run `mix test`, Hound is automatically started. __You'll need a webdriver server__ running, like Selenium Server or Chrome Driver. If you aren't sure what it is, then [read this](https://github.com/HashNuke/hound/wiki/Starting-a-webdriver-server).
6666

67+
#### If you're using Phoenix
68+
Ensure the server is started when your tests are run. In `config/test.exs` change the `server` option of your endpoint config to `true`:
69+
70+
```elixir
71+
config :hello_world_web, HelloWorldWeb.Endpoint,
72+
http: [port: 4001],
73+
server: true
74+
```
75+
6776
## Configure
6877

6978
To configure Hound, use your `config/config.exs` file or equivalent.

0 commit comments

Comments
 (0)