Skip to content

Commit

Permalink
feat: match kotlin files for globbing (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaryt authored Oct 11, 2022
1 parent 04f67af commit e011e96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/enable-test-splitting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ echo -e "\033[31m\033[4mOrb Notes on Test Splitting\033[0m
mkdir -p .circleci/tests/
# generate excluded surefire tests using provided pattern
circleci tests glob "$PARAM_TEST_DIR"/"$PARAM_PATTERN" | \
sed -e "s#^$PARAM_TEST_DIR/\(.*\)\.java#\1#" | \
sed -e "s#^$PARAM_TEST_DIR/\(.*\)\.(java|kt)#\1#" | \
tr "/" "." > .circleci/tests/surefire_classnames
circleci tests split --split-by=timings --timings-type=classname < .circleci/tests/surefire_classnames > /tmp/this_node_tests
grep -xvf /tmp/this_node_tests < .circleci/tests/surefire_classnames > .circleci/tests/surefire_classnames_ignore_list
# generate excluded failsafe tests using provided pattern
circleci tests glob "$PARAM_TEST_DIR"/"$PARAM_PATTERN" | \
sed -e "s#^$PARAM_TEST_DIR/\(.*\)\.java#\1#" | \
sed -e "s#^$PARAM_TEST_DIR/\(.*\)\.(java|kt)#\1#" | \
tr "/" "." > .circleci/tests/failsafe_classnames
circleci tests split --split-by=timings --timings-type=classname < .circleci/tests/failsafe_classnames > /tmp/this_node_it_tests
grep -xvf /tmp/this_node_it_tests < .circleci/tests/failsafe_classnames > .circleci/tests/failsafe_classnames_ignore_list

0 comments on commit e011e96

Please sign in to comment.