-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·23 lines (20 loc) · 1.03 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#
# Copyright (c) 2023 - 2024 Heiko Lübbe
# This software is licensed under the MIT License.
# For the full license text, see the LICENSE file in the project root or visit https://opensource.org/licenses/MIT
#
# test.sh - End-To-End (E2E) test the Joomla module mod_zitat_service_de
# - With argument 3, 4 or 5 for one Joomla version; w/o argument for all three Joomla versions
# - Cypress options can be added with CYPRESS_OPTIONS env var, e.g. CYPRESS_OPTIONS="video=true"
# - Electron enable logging to see console messages can be turned on by env var ELECTRON_ENABLE_LOGGING=1
source scripts/common.sh
checkVersion $*
electron_enable_logging=""
if [ "$ELECTRON_ENABLE_LOGGING" == "1" ]; then
electron_enable_logging="ELECTRON_ENABLE_LOGGING=1"
fi
for version in ${versions[@]}; do
echo "*** Testing module mod_zitat_service_de in Joomla $version"
docker exec -it quote_joomla_cypress sh -c "$electron_enable_logging JOOMLA_VERSION=$version cypress run --spec cypress/e2e/test.cy.ts $options"
done