Skip to content

Commit 8bb2ecd

Browse files
authored
feat(testing): convert CI to use Makefile for testing (#8940)
1 parent 98fed7a commit 8bb2ecd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.kokoro/tests/run_test_java.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# limitations under the License.
1515

1616
file="$(pwd)"
17+
project_root="$(git rev-parse --show-toplevel)"
18+
rel_dir=$(realpath --relative-to=${project_root} $file)
1719
SCRIPT_DIR="$(dirname $0)/"
1820

1921
# Fail the tests if no Java version was found.
@@ -67,13 +69,10 @@ if [[ "$file" == *"functions/helloworld/"* ]]; then
6769
fi
6870

6971
# Use maven to execute the tests for the project.
70-
mvn --quiet --batch-mode --fail-at-end clean verify \
71-
-Dfile.encoding="UTF-8" \
72-
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
73-
-Dmaven.test.redirectTestOutputToFile=true \
74-
-Dbigtable.projectID="${GOOGLE_CLOUD_PROJECT}" \
75-
-Dbigtable.instanceID=instance
72+
pushd ${project_root}
73+
make test dir=${rel_dir}
7674
EXIT=$?
75+
popd
7776

7877
# Tear down (deployed) Cloud Functions after deployment tests are run
7978
if [[ "$file" == *"functions/helloworld/"* ]]; then

0 commit comments

Comments
 (0)