-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate treegen
module and adapt it
#371
Conversation
da5505e
to
bc05810
Compare
445683f
to
32a42ab
Compare
200caaf
to
4b520d0
Compare
Hmm
It's very strange, because everything is ok on my host: $ ./bin/luatest -c -v ./test/treegen_test.lua
Tarantool version is 2.11.0-0-g247a9a418
Started on Thu Jun 6 00:18:01 2024
treegen.test_init_without_explicit_hooks ...
treegen.test_init_without_explicit_hooks ... (0.000s) Ok
treegen.test_add_template ...
treegen.test_add_template ... (0.000s) Ok
treegen.test_prepare_directory ...
treegen.test_prepare_directory ... (0.001s) Ok
treegen.test_clean_keep_data ...
treegen.test_clean_keep_data ... (0.001s) Ok
=========================================================
Ran 4 tests in 0.003 seconds, 4 succeeded, 0 failed |
@ochaplashkin I see two facts that may be useful for debugging.
|
3ef1cc1
to
ec2c8e5
Compare
8086a58
to
7c4f8b4
Compare
a3ceefa
to
d3db269
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No objections from my side.
Preloaded hooks extend base hooks. They behave like the pytest fixture with the `autouse` parameter. This is useful when writing a module and using it with "auto" before/after hooks. The following functions have been "preloaded" into `hooks.lua` module: - before_suite_preloaded(func) - after_suite_preloaded(func) - before_all_preloaded(func) - after_all_preloaded(func) - before_each_preloaded(func) - after_each_preloaded(func) Close tarantool#380
fed1cc6
to
37a0827
Compare
The original `treegen` module (path: tarantool/test/treegen.lua) has been moved to the current project with the following changes: - refactoring; - updated documentation. Closes tarantool#364
37a0827
to
16c261d
Compare
Introduce preloaded hooks
Preloaded hooks extend base hooks. They behave like the pytest fixture with the
autouse
parameter. This is useful when writing a module and using it with "auto" before/after hooks.The following functions have been "preloaded" into
hooks.lua
module:Closes #380
Migrate treegen module and adapt it
The original
treegen
module (path: tarantool/test/treegen.lua) has been moved to the current project with the following changes:Closes #364