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 14
14
# limitations under the License.
15
15
16
16
file=" $( pwd) "
17
+ project_root=" $( git rev-parse --show-toplevel) "
18
+ rel_dir=$( realpath --relative-to=${project_root} $file )
17
19
SCRIPT_DIR=" $( dirname $0 ) /"
18
20
19
21
# Fail the tests if no Java version was found.
@@ -67,13 +69,10 @@ if [[ "$file" == *"functions/helloworld/"* ]]; then
67
69
fi
68
70
69
71
# 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}
76
74
EXIT=$?
75
+ popd
77
76
78
77
# Tear down (deployed) Cloud Functions after deployment tests are run
79
78
if [[ " $file " == * " functions/helloworld/" * ]]; then
You can’t perform that action at this time.
0 commit comments