Class luatest.group | Tarantool
Документация на русском языке
поддерживается сообществом

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

Нашли ответ на свой вопрос?
Обратная связь