luatest
luatest copied to clipboard
Tarantool test framework written in Lua
It would be nice to write one-line hooks like ```lua g.after_test('test_smth', function() g.master.net_box:eval([[ -- do something ]]) end) ``` in such way: ```lua g.after_test('test_smth', g.master.net_box:eval, [[ -- do something ]])...
Sometimes there is a need to set one hook for several tests. As a result you have to write `before_test` and `after_test` with the same function for each test individually...
We have a need to run performance tests using luatest in, for example, CRUD module. Now CRUD has a [single test](https://github.com/tarantool/crud/blob/master/test/performance/select_perf_test.lua) that report results on each iteration to console log...
If a test formally passes, it does not mean it passes factually. It might be passing while it should not. Then I want to add some debug prints. And I...
I tried to find which arguments they take and just couldn't. In the examples and in the code I couldn't find anything. Attempts to print the arguments resulted into messages...
In `exec()` functions on the instances I can't save any global parameters conveniently. Because of that I need to return stuff from `exec()` funcs and pass it back into another...
`retrying()` takes options as a first argument. It is almost never needed non-default. As a result, nearly all calls of `retrying()` are going to start with `{}`. The options must...
Now it doesn't work: ```lua t.assert_covers( {a = {b = 'c', d = 'e'}, f = 'g'}, {a = {b = 'c'}} ) ``` Because {b = 'c', d =...
I would like to have asserts for checking http responses: ```lua local resp = some_http_method(...) t.assert_http_status(resp, 200) t.assert_http_json(resp, {'k' = '*'}) ```
Unable to start a TAP test, test-run failed with `('Unable to run `luatest --version`', {'returncode': 1})`. However luatest is available in $PATH. ``` sergeyb@pony:~/sources/MRG/tarantool/build/test$ git submodule update --init --recursive Submodule...