From 1a9b46a5446a094722691de0f79a67b96fe6b59e Mon Sep 17 00:00:00 2001 From: "bodong.yang" Date: Wed, 27 Nov 2024 11:21:46 +0000 Subject: [PATCH] fix test docker with parallel and concurrency enabled --- docker/test_base/entry_point.sh | 1 + pyproject.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/docker/test_base/entry_point.sh b/docker/test_base/entry_point.sh index 4416da4cc..4ab2779e1 100644 --- a/docker/test_base/entry_point.sh +++ b/docker/test_base/entry_point.sh @@ -13,4 +13,5 @@ echo "execute test with coverage" cd ${TEST_ROOT} hatch env create dev hatch run dev:coverage run -m pytest --junit-xml=${OUTPUT_DIR}/pytest.xml ${@:-} +hatch run dev:coverage combine hatch run dev:coverage xml -o ${OUTPUT_DIR}/coverage.xml diff --git a/pyproject.toml b/pyproject.toml index 82069ea5d..c98830edf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -113,6 +113,7 @@ concurrency = [ ] branch = false relative_files = true +parallel = true source = [ "otaclient", "otaclient_api",