Description
luatest is the testing framework for tarantool written in Lua. The nice property of luatest is how tests are organized: a test case, setup code, teardown code are all in its own functions. Aside of this, there are a bunch of asserts and helpers, including helpers for spawning new tarantool instances.
The idea is to provide ability to write tests for tarantool using luatest API and run those tests together with existing ones. So we'll able to experiment around different ways to write a test and, if we'll dedice so, perform migration to luatest piece-by-piece.
The rough idea is to teach test-run to work as luatest harness: collect *_test.lua
files and run them though luatest. test-run should report results for luatest tests in the same way as for all other ones.
There are other points, where we can integrate luatest and test-run. At least, we can reimplement server.lua to track started instances though test-run (so test-run will kill them at termination -- I don't know whether there is a problem with this in luatest, and will collect RSS usage -- after #277). It is not mandatory for an initial implementation.