Skip to content

Commit 08eedb6

Browse files
committed
readme: update section about testing
Part of #123
1 parent 401d639 commit 08eedb6

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

Makefile

+25-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,32 @@ deps: clean
1111
( cd ./queue; tarantoolctl rocks install queue 1.1.0 )
1212

1313
.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"
1538
go clean -testcache
16-
go test ./... -v -p 1
39+
go test . -v -p 1
1740

1841
.PHONY: coverage
1942
coverage:

README.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,14 @@ make test
187187
```
188188
Tests 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

0 commit comments

Comments
 (0)