@@ -78,16 +78,9 @@ It is possible to run only Redis client tests (with cluster mode disabled) by
78
78
using ` invoke standalone-tests ` ; similarly, RedisCluster tests can be run by using
79
79
` invoke cluster-tests ` .
80
80
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
82
82
things get stuck, an ` invoke clean ` can help.
83
83
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
-
91
84
### Docker Tips
92
85
93
86
Following 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:
97
90
98
91
` $ docker run -it <service> /bin/bash `
99
92
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
-
104
93
Containers run a minimal Debian image that probably lacks tools you want
105
94
to use. To install packages, first get a bash session (see previous tip)
106
95
and then run:
@@ -111,23 +100,6 @@ You can see the logging output of a containers like this:
111
100
112
101
` $ docker logs -f <service> `
113
102
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
-
131
103
### Troubleshooting
132
104
133
105
If you get any errors when running ` make dev ` or ` make test ` , make sure
0 commit comments