@@ -78,16 +78,9 @@ It is possible to run only Redis client tests (with cluster mode disabled) by
7878using ` invoke standalone-tests ` ; similarly, RedisCluster tests can be run by using
7979` invoke cluster-tests ` .
8080
81- Each run of tox starts and stops the various dockers required. Sometimes
81+ Each run of tests starts and stops the various dockers required. Sometimes
8282things get stuck, an ` invoke clean ` can help.
8383
84- Continuous Integration uses these same wrappers to run all of these
85- tests against multiple versions of python. Feel free to test your
86- changes against all the python versions supported, as declared by the
87- tox.ini file (eg: tox -e py39). If you have the various python versions
88- on your desktop, you can run * tox* by itself, to test all supported
89- versions.
90-
9184### Docker Tips
9285
9386Following are a few tips that can help you work with the Docker-based
@@ -97,10 +90,6 @@ To get a bash shell inside of a container:
9790
9891` $ docker run -it <service> /bin/bash `
9992
100- ** Note** : The term \" service\" refers to the \" services\" defined in the
101- ` tox.ini ` file at the top of the repo: \" master\" , \" replicaof\" ,
102- \" sentinel_1\" , \" sentinel_2\" , \" sentinel_3\" .
103-
10493Containers run a minimal Debian image that probably lacks tools you want
10594to use. To install packages, first get a bash session (see previous tip)
10695and then run:
@@ -111,23 +100,6 @@ You can see the logging output of a containers like this:
111100
112101` $ docker logs -f <service> `
113102
114- The command make test runs all tests in all tested Python
115- environments. To run the tests in a single environment, like Python 3.9,
116- use a command like this:
117-
118- ` $ docker-compose run test tox -e py39 -- --redis-url=redis://master:6379/9 `
119-
120- Here, the flag ` -e py39 ` runs tests against the Python 3.9 tox
121- environment. And note from the example that whenever you run tests like
122- this, instead of using make test, you need to pass
123- ` -- --redis-url=redis://master:6379/9 ` . This points the tests at the
124- \" master\" container.
125-
126- Our test suite uses ` pytest ` . You can run a specific test suite against
127- a specific Python version like this:
128-
129- ` $ docker-compose run test tox -e py37 -- --redis-url=redis://master:6379/9 tests/test_commands.py `
130-
131103### Troubleshooting
132104
133105If you get any errors when running ` make dev ` or ` make test ` , make sure
0 commit comments