mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
fix(doc): add more examples on how to run node-redis test image
This commit is contained in:
parent
f31d452939
commit
9f935a33c0
2 changed files with 9 additions and 6 deletions
|
@ -29,6 +29,13 @@ Run:
|
||||||
docker run --network=host node-redis-test
|
docker run --network=host node-redis-test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
to run only selected tests use:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run --network=host node-redis-test npm run test -w ./packages/client -- --redis-version=2.8 -g <regex>
|
||||||
|
```
|
||||||
|
|
||||||
|
In general, you can add this way any option from [mocha framework](https://mochajs.org/#command-line-usage).
|
||||||
|
|
||||||
## Jedis
|
## Jedis
|
||||||
Integration test for the Jedis client.
|
Integration test for the Jedis client.
|
||||||
|
|
|
@ -9,10 +9,6 @@ RUN git clone -b dragonfly https://github.com/dragonflydb/node-redis.git
|
||||||
|
|
||||||
WORKDIR /app/node-redis
|
WORKDIR /app/node-redis
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install && npm run build:tests-tools
|
||||||
|
|
||||||
RUN npm run build -w ./packages/client
|
CMD npm run test -w ./packages/client -- --redis-version=2.8
|
||||||
|
|
||||||
RUN npm run build -w ./packages/test-utils
|
|
||||||
|
|
||||||
CMD npm run test -w ./packages/client -- --redis-version=2.8
|
|
||||||
|
|
Loading…
Reference in a new issue