File tree 2 files changed +29
-9
lines changed
2 files changed +29
-9
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,32 @@ deps: clean
11
11
( cd ./queue; tarantoolctl rocks install queue 1.1.0 )
12
12
13
13
.PHONY : test
14
- test :
14
+ test : test-main test-multi test-queue test-uuid
15
+
16
+ .PHONY : test-multi
17
+ test-multi :
18
+ @echo " Running tests in multiconnection package"
19
+ go clean -testcache
20
+ go test ./multi/ -v -p 1
21
+
22
+ .PHONY : test-queue
23
+ test-queue :
24
+ @echo " Running tests in queue package"
25
+ cd ./queue/ && tarantool -e " require('queue')"
26
+ go clean -testcache
27
+ go test ./queue/ -v -p 1
28
+
29
+ .PHONY : test-uuid
30
+ test-uuid :
31
+ @echo " Running tests in UUID package"
32
+ go clean -testcache
33
+ go test ./uuid/ -v -p 1
34
+
35
+ .PHONY : test-main
36
+ test-main :
37
+ @echo " Running tests in main package"
15
38
go clean -testcache
16
- go test ./... -v -p 1
39
+ go test . -v -p 1
17
40
18
41
.PHONY : coverage
19
42
coverage :
Original file line number Diff line number Diff line change @@ -187,17 +187,14 @@ make test
187
187
```
188
188
Tests set up all required ` tarantool ` processes before run and clean up after.
189
189
190
- If you want to run a specific package tests, go to a package folder
190
+ If you want to run a specific package tests, call
191
191
``` bash
192
- cd multi
192
+ make test- < SUBDIR >
193
193
```
194
- and call
194
+ For example, for running tests in ` multi ` , ` uuid ` and ` main ` packages, call
195
195
``` bash
196
- go clean -testcache && go test -v
196
+ make test-multi test-uuid test-main
197
197
```
198
- Use the same for main ` tarantool ` package and ` queue ` and ` uuid ` subpackages.
199
- ` uuid ` tests require
200
- [ Tarantool 2.4.1 or newer] ( https://github.com/tarantool/tarantool/commit/d68fc29246714eee505bc9bbcd84a02de17972c5 ) .
201
198
202
199
## Alternative connectors
203
200
You can’t perform that action at this time.
0 commit comments