Skip to content

Commit 0f1f4da

Browse files
committed
update 2
1 parent 10ba68e commit 0f1f4da

File tree

1 file changed

+15
-24
lines changed

1 file changed

+15
-24
lines changed

README.md

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,15 @@ description = Example test suite using luatest
3838
...
3939
```
4040

41-
There's a syntax for single- and multiline lists. (TODO see ./sql-tap/suite.ini)
42-
For example:
43-
44-
```ini
45-
single_line = first.test.lua second.test.lua third.test.lua
46-
multiline = first.test.lua ;
47-
second.test.lua ;
48-
third.test.lua ;
49-
...
50-
```
51-
5241
Below is a list of configuration values (fields) in the `suite.ini` file.
5342

5443
### General configuration values
5544

5645
* `core` — major type of tests in this suite.
5746
Should have one of the following values:
5847

59-
* `tarantool` — a test that reads a file with commands
60-
feeds it line by line to the tarantool console,
48+
* `tarantool` — a test that reads a file with commands,
49+
feeds it line by line to the `tarantool` console,
6150
writes requests and responses to an output file,
6251
and then compares that file with a reference file.
6352
Often called a "diff-test".
@@ -72,7 +61,7 @@ Below is a list of configuration values (fields) in the `suite.ini` file.
7261

7362
* `description`
7463

75-
* `script`A file with Tarantool commands.
64+
* `script`The file with Tarantool commands, used in `core = tarantool` tests.
7665
It is used to start the default server using `tarantoolctl`.
7766
The value should be a file in the same directory as `suite.ini`, like `box.lua` or `master.lua`.
7867
This setting is mandatory for test suites with `core = tarantool`
@@ -109,17 +98,19 @@ A number of fields are used to disable certain tests:
10998

11099
### Other parameters
111100

101+
* `is_parallel` (optional, `False` by default) — whether the tests in the suite can run in parallel
102+
103+
* `use_unix_sockets` (optional, `False` by default) — use UNIX sockets for console
104+
* `use_unix_sockets_iproto` (optional, `False` by default) — use UNIX sockets for IProto.
105+
112106
* `show_reproduce_content` (optional, `True` by default) — when set to `True`,
113107
show the contents of the reproduce file for each failed test.
114-
Reproduce files are not required for investigating results of
115-
tests that run each case in a separate Tarantool instance.
116-
For such tests it makes sense to set `show_reproduce_content = False`.
117108
(Implemented in [#113](https://github.com/tarantool/test-run/issues/113))
118109

119-
* `is_parallel` (optional, `False` by default) — whether the tests in the suite can run in parallel
120-
121-
* `use_unix_sockets` (optional, `False` by default) — use hard-coded UNIX sockets
122-
* `use_unix_sockets_iproto` (optional, `False` by default) — use hard-coded UNIX sockets for IProto.
110+
Reproduce files are not required for investigating results of
111+
tests that run each case in a separate Tarantool instance,
112+
which is the preferred way to run tests.
113+
For such tests it makes sense to set `show_reproduce_content = False`.
123114

124115
### Fragile tests
125116

@@ -157,6 +148,7 @@ the `.result` files with new test output.
157148

158149
The optional skip condition file is a Python script.
159150
It is used to skip a test on some conditions, typically on a certain OS.
151+
160152
In the local Python environment of a test run there's a `self` object,
161153
which is an instance of the [`Test` class](./lib/test.py).
162154
Set `self.skip = 1` to skip this test.
@@ -175,8 +167,7 @@ if platform.system() == 'OpenBSD':
175167
## Test execution
176168

177169
Running a test begins with executing the `.skipcond` file.
178-
If `self.skip` is set to `1`, test-run skips this test
179-
and reports TODO.
170+
If after execution `self.skip` equals `1`, test-run skips this test.
180171

181172
Next, the test file is executed and the output is written to a `.reject` file.
182173
If the output is TAP13-compatible, test-run validates it.
@@ -209,7 +200,7 @@ In the example below:
209200
* `first.test.lua` will run only on the memtx engine;
210201
* `second.test.lua` will run as is, without parameterizing;
211202
* all other tests in the suite (`*`) will be parameterized to run on both memtx and vinyl engines.
212-
*
203+
213204
```json
214205
{
215206
"first.test.lua": {

0 commit comments

Comments
 (0)