You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+17-11
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,12 @@ This method allows us to thoroughly test queries within a sharded environment, e
29
29
30
30
## How to use
31
31
32
-
Build the `vitess-tester` binary:
32
+
After installing the `vitess-tester` binary, you need to have Vitess installed and in your path.
33
+
To run vitess, you'll need to set VTDATAROOT and VTROOT environment variables.
34
+
You can do this, and set up the Vitess environment by running the following command:
35
+
33
36
```sh
34
-
make
37
+
source build.env
35
38
```
36
39
37
40
Basic usage:
@@ -68,32 +71,35 @@ Usage of ./vitess-tester:
68
71
-perf-test
69
72
include end-to-end performance tests
70
73
-sharded
71
-
run all tests on a sharded keyspace
74
+
Run all tests on a sharded keyspace and using auto-vschema. This cannot be used with either -vschema or -vtexplain-vschema.
72
75
-stderrthreshold value
73
76
logs at or above this threshold go to stderr (default 2)
74
-
-test-dir string
75
-
Directory for the test files (default "./t/")
76
77
-topo-flavor string
77
78
choose a topo server from etcd2, zk2 or consul (default "etcd2")
78
79
-v value
79
80
log level for V logs
80
81
-vmodule value
81
82
comma-separated list of pattern=N settings for file-filtered logging
82
83
-vschema string
83
-
Disable auto-vschema by providing your own vschema file
84
+
Disable auto-vschema by providing your own vschema file. This cannot be used with either -vtexplain-vschema or -sharded.
85
+
-vtexplain-vschema string
86
+
Disable auto-vschema by providing your own vtexplain vschema file. This cannot be used with either -vschema or -sharded.
84
87
-xunit
85
88
Get output in an xml file instead of errors directory
86
89
```
87
90
88
-
It will bring up an entire Vitess cluster on 127.0.0.1, unsharded or sharded depending on the `-sharded` flag. MySQL and VTGate both start with root and no password configured.
91
+
It will bring up an entire Vitess cluster on 127.0.0.1, unsharded or sharded depending on the configuration. MySQL and VTGate both start with root and no password configured.
89
92
90
93
```sh
91
-
./vitess-tester t/example.test # run a specified test
92
-
./vitess-tester t/example1.test t/example2.test t/example3.test # separate different tests with one or more spaces
93
-
./vitess-tester t/*.test # wildcards can be used
94
-
./vitess-tester https://raw.githubusercontent.com/vitessio/vitess-tester/main/t/basic.test # can also be run against an URL
94
+
vitess-tester t/example.test # run a specified test
95
+
vitess-tester t/example1.test t/example2.test t/example3.test # separate different tests with one or more spaces
96
+
vitess-tester t/*.test # wildcards can be used
97
+
vitess-tester https://raw.githubusercontent.com/vitessio/vitess-tester/main/t/basic.test # can also be run against an URL
98
+
vitess-tester -vtexplain-vschema t/vtexplain-vschema.json t/vtexplain.test # run a test with a custom vschema
95
99
```
96
100
101
+
The test files can be amended with directives to control the testing process. Check out `directives.test` to see examples of what directives are available.
102
+
97
103
## Contributing
98
104
99
105
Contributions are welcomed and greatly appreciated. You can help by:
0 commit comments