File tree Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,47 @@ See the [documentation](http://www.ethanhann.com/redisearch-php/) for more infor
15
15
16
16
Contributions are welcome. Before submitting a PR for review, please run confirm all tests in the test suite pass.
17
17
18
- Start the local dev environment by running:
18
+ Start the local Docker dev environment by running:
19
19
20
- ``` docker compose up ```
20
+ ``` shell
21
+ docker compose up
22
+ ```
21
23
22
24
...or simply:
23
25
24
- ``` ./dev ```
26
+ ``` shell
27
+ ./dev
28
+ ```
25
29
26
30
Then run the tests:
27
31
28
- ``` ./vendor/bin/phpunit ```
32
+ ``` shell
33
+ vendor/bin/robo test
34
+ ```
35
+
36
+ Specific Redis clients can be tested:
37
+
38
+ ``` shell
39
+ vendor/bin/robo test:predis
40
+ vendor/bin/robo test:php-redis
41
+ vendor/bin/robo test:redis-client
42
+ ```
43
+
44
+ Or to run tests for all clients:
45
+
46
+ ``` shell
47
+ vendor/bin/robo test:all
48
+ ```
29
49
30
50
Do not run tests on a prod system (of course), or any system that has a Redis instance with data you care about -
31
51
Redis is flushed between tests.
32
52
53
+ To fix code style, before submitting a PR:
54
+
55
+ ``` shell
56
+ vendor/bin/robo task:fix-code-style
57
+ ```
58
+
33
59
** Laravel Support**
34
60
35
61
[ Laravel-RediSearch] ( https://github.com/ethanhann/Laravel-RediSearch ) - Exposes RediSearch-PHP to Laravel as a Scout driver.
You can’t perform that action at this time.
0 commit comments