1
0
Fork 0
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:
Roman Gershman 2022-08-15 08:37:19 +03:00
parent f31d452939
commit 9f935a33c0
2 changed files with 9 additions and 6 deletions

View file

@ -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.

View file

@ -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