File tree Expand file tree Collapse file tree 2 files changed +29
-8
lines changed Expand file tree Collapse file tree 2 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,32 @@ deps: clean
12
12
13
13
.PHONY : test
14
14
test :
15
+ go test ./... -v -p 1
16
+
17
+ .PHONY : test-multi
18
+ test-multi :
19
+ @echo " Running tests in multiconnection package"
20
+ go clean -testcache
21
+ go test ./multi/ -v -p 1
22
+
23
+ .PHONY : test-queue
24
+ test-queue :
25
+ @echo " Running tests in queue package"
26
+ cd ./queue/ && tarantool -e " require('queue')"
27
+ go clean -testcache
28
+ go test ./queue/ -v -p 1
29
+
30
+ .PHONY : test-uuid
31
+ test-uuid :
32
+ @echo " Running tests in UUID package"
33
+ go clean -testcache
34
+ go test ./uuid/ -v -p 1
35
+
36
+ .PHONY : test-main
37
+ test-main :
38
+ @echo " Running tests in main package"
15
39
go clean -testcache
16
- go test ./... -v -p 1
40
+ go test . -v -p 1
17
41
18
42
.PHONY : coverage
19
43
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