Skip to content

Autorequire luatest in all instances to simplify :exec() calls #233

@Gerold103

Description

@Gerold103

Very often I see in the tests code like this:

g.replica:exec(function()
    require('luatest').assert(...)
end)

It is repeated for the same instances inside of a single test case over and over again sometimes. I want the instance default file to require luatest into a global variable. For example, luat. So as it could be used in all exec calls without annoying require('luatest') multiple times.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions