for maven (and prolly would work with gradle), now

yielding any file called 'jacoco.xml'
This commit is contained in:
Karma Riuk
2025-03-20 09:50:27 +01:00
parent 8d3a9f4f0d
commit 1bd822af0b

View File

@ -204,8 +204,11 @@ class MavenHandler(BuildHandler):
self.updates["n_tests_passed"] += (tests_run - (failures + errors)) # Calculate passed tests
def get_jacoco_report_paths(self) -> Iterable[str]:
yield os.path.join(self.path, "target/site/jacoco-aggregate/jacoco.xml")
# yield os.path.join(self.path, "target/site/jacoco-aggregate/jacoco.xml")
for root, _, files in os.walk(os.path.join(self.path, "target", "site")):
for file in files:
if file == "jacoco.xml":
yield os.path.join(root, file)
class GradleHandler(BuildHandler):
def __init__(self, repo_path: str, build_file: str, updates: dict) -> None:
super().__init__(repo_path, build_file, updates)