We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb49ed4 commit 8459ed6Copy full SHA for 8459ed6
UI_Tests/pre-push
@@ -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