Skip to content

Commit 114d2a6

Browse files
committed
readme: update section about testing
1 parent b219738 commit 114d2a6

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,26 @@ 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 ./multi/ -v -p 1
22+
23+
.PHONY: test-queue
24+
test-queue:
25+
go clean -testcache
26+
go test ./queue/ -v -p 1
27+
28+
.PHONY: test-uuid
29+
test-uuid:
30+
go clean -testcache
31+
go test ./uuid/ -v -p 1
32+
33+
.PHONY: test-main
34+
test-main:
35+
go clean -testcache
36+
go test . -v -p 1
37+
1838
.PHONY: coverage
1939
coverage:
2040
go clean -testcache

README.md

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

187-
If you want to run a specific package tests, go to a package folder
187+
If you want to run a specific package tests, call
188188
```bash
189-
cd multi
189+
make test-<SUBDIR>
190190
```
191-
and call
191+
For example, for running tests in `multi`, `uuid` and `main` packages, call
192192
```bash
193-
go clean -testcache && go test -v
193+
make test-multi test-uuid test-main
194194
```
195-
Use the same for main `tarantool` package and `queue` and `uuid` subpackages.
196-
`uuid` tests require
197-
[Tarantool 2.4.1 or newer](https://github.com/tarantool/tarantool/commit/d68fc29246714eee505bc9bbcd84a02de17972c5).
198195

199196
## Alternative connectors
200197

0 commit comments

Comments
 (0)