diff --git a/.circleci/doTests.sh b/.circleci/doTests.sh index cde56b142..761026309 100755 --- a/.circleci/doTests.sh +++ b/.circleci/doTests.sh @@ -164,18 +164,13 @@ do echo $SUPERTOKENS_API_KEY > apiPassword # Get list of classnames of tests that should run on this node. - circleci tests glob "supertokens-*/src/test/**/*Test.java" | cut -c 1- | sed 's@/@.@g' | sed 's/.\{5\}$//' | + circleci tests glob "supertokens-*/src/test/**/*.java" | cut -c 1- | sed 's@/@.@g' | sed 's/.\{5\}$//' | circleci tests run --command=">classnames.txt xargs echo" --verbose --split-by=timings --timings-type=classname - echo "!!!!! CLASSNAMES" - cat classnames.txt - echo "----- CLASSNAMES" - - #if this is a re-run and it is a parallel run that does not have tests to run, halt execution of this parallel run [ -s classnames.txt ] || circleci-agent step halt - GRADLE_ARGS=$(cat src/test/java/classnames.txt | awk '{for (i=1; i<=NF; i++) print "--tests",$i}') + GRADLE_ARGS=$(cat classnames.txt | awk '{for (i=1; i<=NF; i++) print "--tests",$i}') echo "Prepared arguments for Gradle: $GRADLE_ARGS" # TODO: remove before merging, this is here to make testing the scripts quicker