Web Dev Solutions

Catalin Mititiuc

From 8e74cef4a5b63ab14e47d8d698f804745c0c4ea6 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 18 Apr 2024 10:01:26 -0700 Subject: Run server on different port when running tests --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1437308..ad1221a 100644 --- a/README.md +++ b/README.md @@ -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. -- cgit v1.2.3