FINERACT-2326: Fix split-tests.sh script

This commit is contained in:
Adam Saghy
2025-09-23 09:34:44 +02:00
committed by Arnold Gálovics
parent 7f07c0afce
commit 84c90d6016
6 changed files with 16 additions and 45 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ fi
echo "🔍 Searching for eligible JUnit test classes..."
ALL_TESTS=$(find . -type f -path "*/src/test/java/*Test.java" \
ALL_TESTS=$(find . -type f -path "*/src/test/java/*.java" \
| while read filepath; do
filename=$(basename "$filepath")
@@ -22,8 +22,8 @@ ALL_TESTS=$(find . -type f -path "*/src/test/java/*Test.java" \
continue
fi
# Skip if file doesn't contain valid JUnit annotations
if ! grep -qE "@Test|@Nested|@ParameterizedTest" "$filepath"; then
# Check for valid JUnit test annotations (exact word match)
if ! grep -q -w "@Test\|@Nested\|@ParameterizedTest" "$filepath"; then
continue
fi