Skip to content

Commit 966dfdc

Browse files
fix: JUnit version detection for multi-module Maven projects
- Check dependencyManagement section in pom.xml for test dependencies - Recursively check submodule pom.xml files (test, tests, etc.) - Change default fallback from JUnit 5 to JUnit 4 (more common in legacy) - Add debug logging for framework detection decisions - Fixes Bug #7: 64% of optimizations blocked by incorrect JUnit 5 detection
1 parent cee7e7a commit 966dfdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeflash/languages/java/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def check_dependencies(deps_element, ns):
240240
check_dependencies(deps, ns)
241241

242242
except ET.ParseError:
243-
logger.debug(f"Failed to parse pom.xml at {pom_path}")
243+
logger.debug("Failed to parse pom.xml at %s", pom_path)
244244

245245
# For multi-module projects, also check submodule pom.xml files
246246
if not (has_junit5 or has_junit4 or has_testng):

0 commit comments

Comments
 (0)