Skip to content

Commit 8459ed6

Browse files
author
Marcus Wermuth
committed
Added Pre Push Hook for UI Tests
1 parent bb49ed4 commit 8459ed6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

UI_Tests/pre-push

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# Show a dialog to ask if UI Tests should be run and results pushed to Sonarqube
4+
RUNTESTS="$(osascript -e 'display dialog "Do you want to run UI Tests and Sonarqube?" buttons {"Yes", "No"} default button "No"')"
5+
6+
if [ "$RUNTESTS" = "button returned:Yes" ]; then
7+
# If Yes then run the gradle task
8+
echo "Alright, running tests."
9+
./gradlew clean sonarqube --continue
10+
else
11+
# If no then just continue to git push
12+
echo "No, not running tests."
13+
fi

0 commit comments

Comments
 (0)