Commit 4dc473ab authored by Frank Bessou's avatar Frank Bessou 🍁
Browse files

chore: describe how to run tests in README

parent b3c406a8a6a8
Pipeline #81769 failed with stages
in 6 minutes and 22 seconds
......@@ -297,7 +297,30 @@ An entity will be a json object, whose keys are defined by its EntitySchema
## Tests
Running the test suite requires nodejs, mocha and xhr2.
The tests relies on an instance with the `test-server` cube to run.
The Dockerfile located in `test-server` creates an image with an instance ready for
use. Building it is as simple as:
docker build -t cw-test-server .
You can then run the instance using `docker run`:
docker run -p 8080:8080 cw-test-server
Once the instance is running, launch the tests:
npm run test
By default the test instance is running on "http://localhost:8080". If you need
to start it on a different host/port, use the `CW_BASE_URL` environment
## Known issues
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment