Class luatest.group | Tarantool
Reference Rocks reference Luatest Class luatest.group

Class luatest.group

Tests group.

To add new example add function at key starting with test .

Group hooks run always when test group is changed. So it may run multiple times when --shuffle option is used.

Add callback to run once after all tests in the group.

Parameters:

  • fn:

Add callback to run after each test in the group.

Parameters:

  • fn:

Add callback to run once before all tests in the group.

Parameters:

  • fn:

Add callback to run before each test in the group.

Parameters:

  • fn:

Parameters:

  • name: (string) Default name is inferred from caller filename when possible.For test/a/b/c_d_test.lua it will be a.b.c_d . (optional)

Returns:

Group instance

Found what you were looking for?
Feedback