File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1414# limitations under the License.
1515
1616file=" $( pwd) "
17+ project_root=" $( git rev-parse --show-toplevel) "
18+ rel_dir=$( realpath --relative-to=${project_root} $file )
1719SCRIPT_DIR=" $( dirname $0 ) /"
1820
1921# Fail the tests if no Java version was found.
@@ -67,13 +69,10 @@ if [[ "$file" == *"functions/helloworld/"* ]]; then
6769fi
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}
7674EXIT=$?
75+ popd
7776
7877# Tear down (deployed) Cloud Functions after deployment tests are run
7978if [[ " $file " == * " functions/helloworld/" * ]]; then
You can’t perform that action at this time.
0 commit comments