Skip to content

Commit b6029e2

Browse files
committed
readme: update section about testing
1 parent 0b57e94 commit b6029e2

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ test:
1515
go clean -testcache
1616
go test ./... -v -p 1
1717

18+
.PHONY: test-multi
19+
test-multi:
20+
go clean -testcache
21+
go test -v ./multi/
22+
23+
.PHONY: test-queue
24+
test-queue:
25+
go clean -testcache
26+
go test -v ./queue/
27+
28+
.PHONY: test-uuid
29+
test-uuid:
30+
go clean -testcache
31+
go test -v ./uuid/
32+
1833
.PHONY: coverage
1934
coverage:
2035
go clean -testcache

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,14 @@ make test
132132
```
133133
Tests set up all required `tarantool` processes before run and clean up after.
134134

135-
If you want to run a specific package tests, go to a package folder
135+
If you want to run a specific package tests, call
136136
```bash
137-
cd multi
137+
make test-<SUBDIR>
138138
```
139-
and call
139+
For example, for running tests in `multi` and `uuid` packages, call
140140
```bash
141-
go clean -testcache && go test -v
141+
make test-multi test-uuid
142142
```
143-
Use the same for main `tarantool` package and `queue` and `uuid` subpackages.
144-
`uuid` tests require
145-
[Tarantool 2.4.1 or newer](https://github.com/tarantool/tarantool/commit/d68fc29246714eee505bc9bbcd84a02de17972c5).
146143

147144
## Alternative connectors
148145

0 commit comments

Comments
 (0)