test legacy-id-triggers #149
23
.aliases
23
.aliases
@ -104,21 +104,32 @@ alias gw-check='. .aliases; . .tc-environment; gw test check -x pitest'
|
|||||||
# You can also re-run all these tests, which will take ~20min: `gw-test --all --rerun`
|
# You can also re-run all these tests, which will take ~20min: `gw-test --all --rerun`
|
||||||
# This will always use the environment from `.tc-environment`.
|
# This will always use the environment from `.tc-environment`.
|
||||||
#
|
#
|
||||||
|
function _gwTest1() {
|
||||||
|
echo
|
||||||
|
printf -- '=%0.s' {1..80}; echo
|
||||||
|
echo "RUNNING gw $@"
|
||||||
|
printf -- '-%0.s' {1..80}; echo
|
||||||
|
./gradlew "$@"
|
||||||
|
printf -- '-%0.s' {1..80}; echo
|
||||||
|
echo "DONE gw $@"
|
||||||
|
}
|
||||||
function _gwTest() {
|
function _gwTest() {
|
||||||
. .aliases;
|
. .aliases;
|
||||||
. .tc-environment;
|
. .tc-environment;
|
||||||
|
rm /tmp/gwTest.tmp
|
||||||
if [ "$1" == "--all" ]; then
|
if [ "$1" == "--all" ]; then
|
||||||
shift # to remove the --all from $@
|
shift # to remove the --all from $@
|
||||||
# delierately in separate gradlew-calls to avoid Testcontains-PostgreSQL problem spillover
|
# delierately in separate gradlew-calls to avoid Testcontains-PostgreSQL problem spillover
|
||||||
./gradlew unitTest "$@" &&
|
time (_gwTest1 unitTest "$@" &&
|
||||||
./gradlew officeIntegrationTest bookingIntegrationTest hostingIntegrationTest "$@" &&
|
_gwTest1 officeIntegrationTest bookingIntegrationTest hostingIntegrationTest "$@" &&
|
||||||
./gradlew scenarioTest "$@" &&
|
_gwTest1 scenarioTest "$@" &&
|
||||||
./gradlew importOfficeData importHostingAssets "$@";
|
_gwTest1 importOfficeData importHostingAssets "$@");
|
||||||
elif [ $# -eq 0 ] || [[ $1 == -* ]]; then
|
elif [ $# -eq 0 ] || [[ $1 == -* ]]; then
|
||||||
./gradlew test "$@";
|
time _gwTest1 test "$@";
|
||||||
else
|
else
|
||||||
./gradlew "$@";
|
time _gwTest1 "$@";
|
||||||
fi
|
fi
|
||||||
|
printf -- '=%0.s' {1..80}; echo
|
||||||
}
|
}
|
||||||
alias gw-test=_gwTest
|
alias gw-test=_gwTest
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user