luatest
luatest copied to clipboard
Tarantool test framework written in Lua
The original `cbuilder` module (tarantool/test/config-luatest/cbuilder.lua) has been moved to the current project with minor changes and will be available as follows: ```lua local t = require('luatest') t.cbuilder:new(...) ``` The helper...
The original `justrun` module (path: tarantool/test/justrun.lua) has been moved to the current project with minor changes and will be available as follows: ```lua local t = require('luatest') t.justrun.tarantool(...) ``` This...
Change directory to `tarantool/test` and run any test written in luatest, for example `./test-run.py box-luatest/watcher_test.lua`, then check `git status`: ``` Untracked files: (use "git add ..." to include in what...
Add the `cluster.lua` module from the tarantool repo ([tarantool/test/cluster.lua](https://github.com/tarantool/tarantool/blob/58f5ffe43bffa0901d8d577bbb4d523c4e7e682a/test//config-luatest/cluster.lua)) to luatest and adapt it.
Add the `cbuilder.lua` module from the tarantool repo ([tarantool/test/config-luatest/cbuilder.lua](https://github.com/tarantool/tarantool/blob/58f5ffe43bffa0901d8d577bbb4d523c4e7e682a/test/config-luatest/cbuilder.lua)) to luatest and adapt it.
Add the `justrun.lua` module from the tarantool repo ([tarantool/test/justrun.lua](https://github.com/tarantool/tarantool/blob/58f5ffe43bffa0901d8d577bbb4d523c4e7e682a/test/justrun.lua)) to luatest and adapt it.
Add the `treegen.lua` module from the tarantool repo ([tarantool/test/treegen.lua](https://github.com/tarantool/tarantool/blob/58f5ffe43bffa0901d8d577bbb4d523c4e7e682a/test/treegen.lua)) to luatest and adapt it.
An error object (created with `box.error`) may contain a cause (`prev`), which points to another error object. It isn't unpacked by `assert_error_covers` (added in #362), which makes the helper useless...
The original `treegen` module (path: tarantool/test/treegen.lua) has been moved to the current project with the following changes: - refactoring the public functions variables; - updated documentation. Part of #364