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
1212
1313.PHONY : test
1414test :
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"
1539 go clean -testcache
16- go test ./... -v -p 1
40+ go test . -v -p 1
1741
1842.PHONY : coverage
1943coverage :
Original file line number Diff line number Diff line change @@ -187,17 +187,14 @@ make test
187187```
188188Tests set up all required ` tarantool ` processes before run and clean up after.
189189
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
191191``` bash
192- cd multi
192+ make test- < SUBDIR >
193193```
194- and call
194+ For example, for running tests in ` multi ` , ` uuid ` and ` main ` packages, call
195195``` bash
196- go clean -testcache && go test -v
196+ make test-multi test-uuid test-main
197197```
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 ) .
201198
202199## Alternative connectors
203200
You can’t perform that action at this time.
0 commit comments