File tree 1 file changed +28
-0
lines changed 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ faster than other packages according to public benchmarks.
27
27
* [ Custom (un)packing and typed selects and function calls] ( #custom-unpacking-and-typed-selects-and-function-calls )
28
28
* [ Options] ( #options )
29
29
* [ Working with queue] ( #working-with-queue )
30
+ * [ Tests] ( #tests )
30
31
* [ Alternative connectors] ( #alternative-connectors )
31
32
32
33
## Installation
@@ -673,6 +674,33 @@ Additional options (configurable via `ConnectWithOpts`):
673
674
* ` ClusterDiscoveryTime ` - time interval to ask server for updated address list (works on with ` NodesGetFunctionName ` set)
674
675
* ` NodesGetFunctionName ` - server lua function name to call for getting address list
675
676
677
+ ## Tests
678
+
679
+ You need to [ install Tarantool] ( https://www.tarantool.io/en/download/ ) to run tests.
680
+ See [ Installation] ( #installation ) section for requirements.
681
+
682
+ To install test dependencies (like [ tarantool/queue] ( https://github.com/tarantool/queue ) module), run
683
+ ``` bash
684
+ ./deps.sh
685
+ ```
686
+
687
+ To run tests for the main package and each subpackage, call
688
+ ``` bash
689
+ go clean -testcache && go test ./... -v -p 1
690
+ ```
691
+ Tests set up all required ` tarantool ` processes before run and clean up after.
692
+
693
+ If you want to run only subpackage tests, go to a subpackage folder
694
+ ``` bash
695
+ cd multi
696
+ ```
697
+ and call
698
+ ``` bash
699
+ go clean -testcache && go test -v
700
+ ```
701
+ Same for ` queue ` and ` uuid ` subpackages. ` uuid ` tests require
702
+ [ Tarantool 2.4.1 or newer] ( https://github.com/tarantool/tarantool/commit/d68fc29246714eee505bc9bbcd84a02de17972c5 ) .
703
+
676
704
## Alternative connectors
677
705
678
706
There are two more connectors from the open-source community available:
You can’t perform that action at this time.
0 commit comments