Run server on different port when running tests
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
|
||||
## Start the dev server
|
||||
|
||||
docker run --rm --init -it -w /app -v $PWD:/app -p 8080:8080 node node dev-server.js
|
||||
docker run --rm --init -it -v $PWD:/usr/src/app -p 8080:8080 btroops
|
||||
|
||||
Visit `localhost:8080` to view.
|
||||
|
||||
## Run a test
|
||||
|
||||
You need chrome and chromedriver installed. The Dockerfile builds an image that does that. Then run the test with that image.
|
||||
You need chrome and chromedriver installed to run the integration tests. The Dockerfile builds an image that does that. Then run the test with that image.
|
||||
|
||||
`--network host` gives the container internet access. Necessary if tests make outside requests.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user