ci: Add query count for integration tests

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-02-16 23:22:00 +01:00
parent 2d91c8200f
commit 011488d63b
4 changed files with 53 additions and 4 deletions

View File

@@ -0,0 +1 @@
61324

View File

@@ -40,7 +40,6 @@ class ServerContext implements Context {
}
public function getCookieJar(): CookieJar {
echo $this->currentUser;
return $this->cookieJar;
}

View File

@@ -27,16 +27,16 @@ if [ -z "$EXECUTOR_NUMBER" ]; then
fi
PORT=$((9090 + $EXECUTOR_NUMBER))
echo $PORT
php -S localhost:$PORT -t $OC_PATH &
php -q -S localhost:$PORT -t $OC_PATH &
PHPPID=$!
echo $PHPPID
export TEST_SERVER_URL="http://localhost:$PORT/ocs/"
vendor/bin/behat $SCENARIO_TO_RUN
vendor/bin/behat --colors $SCENARIO_TO_RUN
RESULT=$?
kill $PHPPID
kill -9 $PHPPID
echo "runsh: Exit code: $RESULT"
exit $RESULT