-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from ldbc/feature/refactor-tests
Refactor tests
- Loading branch information
Showing
11 changed files
with
667 additions
and
653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,20 +3,39 @@ orbs: | |
slack: circleci/[email protected] | ||
workflows: | ||
version: 2 | ||
build: | ||
build-then-test: | ||
jobs: | ||
- compile_driver | ||
- test_driver: | ||
requires: | ||
- compile_driver | ||
- test_conversion_script | ||
|
||
jobs: | ||
compile_driver: | ||
docker: | ||
- image: cimg/openjdk:11.0.16 | ||
steps: | ||
- checkout | ||
- run: mvn clean install -DskipTests | ||
|
||
test_driver: | ||
parallelism: 2 # parallel containers to split the tests among | ||
docker: | ||
- image: cimg/openjdk:11.0.16 | ||
steps: | ||
- checkout | ||
- run: | | ||
mvn test | tee mvn.log | ||
grep 'BUILD SUCCESS' mvn.log | ||
mvn \ | ||
-Dtest=$(for file in $(circleci tests glob "src/test/**/**.java" \ | ||
| circleci tests split --split-by=timings); \ | ||
do basename $file \ | ||
| sed -e "s/.java/,/"; \ | ||
done | tr -d '\r\n') \ | ||
-e test | ||
- store_test_results: # We use this timing data to optimize the future runs | ||
path: target/surefire-reports | ||
|
||
test_conversion_script: | ||
machine: | ||
image: ubuntu-2204:2022.04.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.