Skip to content

Commit be446cd

Browse files
committed
test: skip Java comparator tests when Maven is unavailable
The requires_java marker only checked for java binary but the tests also need mvn to build the codeflash-runtime JAR. These 13 tests were silently failing in unit-tests (masked by continue-on-error).
1 parent 9a86e09 commit be446cd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_languages/test_java/test_comparator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
# Skip tests that require Java runtime if Java is not available
1313
requires_java = pytest.mark.skipif(
14-
shutil.which("java") is None, reason="Java not found - skipping Comparator integration tests"
14+
shutil.which("java") is None or shutil.which("mvn") is None,
15+
reason="Java/Maven not found - skipping Comparator integration tests",
1516
)
1617

1718
# Kryo-serialized bytes for common test values.

0 commit comments

Comments
 (0)