Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
cwclientlibjs
Commits
fa80dfc66d73
Commit
4dc473ab
authored
Sep 13, 2021
by
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
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
fa80dfc6
...
...
@@ -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:
```
bash
docker build
-t
cw-test-server .
```
You can then run the instance using
`docker run`
:
```
bash
docker run
-p
8080:8080 cw-test-server
```
Once the instance is running, launch the tests:
```
bash
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
variable.
## Known issues
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment