[FIX] makefile test: move serial test in execution second test

This commit is contained in:
Mathieu Benoit 2023-04-11 21:32:39 -04:00
parent 39f289ab3d
commit 542aeee85d
2 changed files with 17 additions and 6 deletions

View file

@ -622,7 +622,7 @@ test_full_fast:
#./script/test/run_parallel_test.py --keep_cache
./script/test/run_parallel_test.py
# TODO This test is broken in parallel
./script/make.sh test_code_generator_hello_world
#./script/make.sh test_code_generator_hello_world
.PHONY: test_full_fast_coverage
test_full_fast_coverage:
@ -632,7 +632,7 @@ test_full_fast_coverage:
./.venv/bin/coverage erase
./script/test/run_parallel_test.py --coverage
# TODO This test is broken in parallel
./script/make.sh test_coverage_code_generator_hello_world
#./script/make.sh test_coverage_code_generator_hello_world
./.venv/bin/coverage combine -a
./.venv/bin/coverage report -m --include="addons/TechnoLibre_odoo-code-generator/*"
./.venv/bin/coverage html --include="addons/TechnoLibre_odoo-code-generator/*"

View file

@ -1205,18 +1205,29 @@ def run_all_test(config) -> None:
run_code_generator_website_snippet_test(config),
run_code_generator_demo_generic_test(config),
# End run generic test
# TODO Will cause conflict with the other because write in code_generator_demo/hooks.py
# run_helloworld_test(config),
run_code_generator_inherit_test(config),
run_demo_test(config),
]
task_second_list = [
# TODO Will cause conflict with the other because write in code_generator_demo/hooks.py
run_helloworld_test(config),
]
_logger.info("First list task")
lib_asyncio.print_summary_task(task_list)
_logger.info("Second list task")
lib_asyncio.print_summary_task(task_second_list)
_logger.info("First execution")
tpl_result = lib_asyncio.execute(config, task_list)
_logger.info("Second execution")
tpl_result_second = lib_asyncio.execute(config, task_second_list)
print_log(task_list, tpl_result)
status = check_result(task_list, tpl_result)
# Extra
tpl_result_total = tpl_result + tpl_result_second
task_list_total = task_list + task_second_list
print_log(task_list_total, tpl_result_total)
status = check_result(task_list_total, tpl_result_total)
if status:
log_file_print = LOG_FILE
else: