From 120b61c2536a72c91f597302dd452a3cb5bb0225 Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Thu, 25 Jan 2024 17:41:49 +0200 Subject: [PATCH] Integration tests workflow improvements (#218) --- .github/workflows/full-integration-tests.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/full-integration-tests.yaml b/.github/workflows/full-integration-tests.yaml index feb6e2b..caf6703 100644 --- a/.github/workflows/full-integration-tests.yaml +++ b/.github/workflows/full-integration-tests.yaml @@ -215,11 +215,17 @@ jobs: working-directory: ./main/dev/tests/integration run: | FILE="phpunit.xml.dist" + + # Remove Memory Usage Tests and Magento Integration Tests Real Suite test suites + sed -i '//,/<\/testsuite>/d' "$FILE" + sed -i '//,/<\/testsuite>/d' "$FILE" + DIRS="${{ matrix.testsuite_dirs }}" echo "Debug: $DIRS" NEW_TESTSUITE_ENTRY=$( echo "" IFS=','; for dir in $DIRS; do echo " $dir"; done + echo " testsuite/Magento/IntegrationTest.php" echo "" ) echo "Debug: $NEW_TESTSUITE_ENTRY" @@ -231,7 +237,8 @@ jobs: working-directory: ./main run: | export WARDEN="$(dirname $(pwd))/warden/bin/warden" - ${WARDEN} env exec -T --workdir /var/www/html/dev/tests/integration php-fpm ../../../vendor/bin/phpunit --configuration phpunit.xml.dist --testsuite 'Mage-OS Suite' --log-junit=../../../phpunit-output/junit/res-log.xml --coverage-html=../../../phpunit-output/coverage-html/res.html + # Important: Run the custom "Magento Integration Tests" test suite, which runs all other test suites + ${WARDEN} env exec -T --workdir /var/www/html/dev/tests/integration php-fpm ../../../vendor/bin/phpunit --configuration phpunit.xml.dist --testsuite 'Magento Integration Tests' --log-junit=../../../phpunit-output/junit/res-log.xml --coverage-html=../../../phpunit-output/coverage-html/res.html rum-memory-integration-tests: needs: [ matrix-calculator ]