Skip to content

Commit dfcad44

Browse files
committed
Integration tests workflow improvements
1 parent a6eb2a4 commit dfcad44

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/full-integration-tests.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,17 @@ jobs:
215215
working-directory: ./main/dev/tests/integration
216216
run: |
217217
FILE="phpunit.xml.dist"
218+
219+
# Remove Memory Usage Tests and Magento Integration Tests Real Suite test suites
220+
sed -i '/<testsuite name="Memory Usage Tests">/,/<\/testsuite>/d' "$FILE"
221+
sed -i '/<testsuite name="Magento Integration Tests Real Suite">/,/<\/testsuite>/d' "$FILE"
222+
218223
DIRS="${{ matrix.testsuite_dirs }}"
219224
echo "Debug: $DIRS"
220225
NEW_TESTSUITE_ENTRY=$(
221226
echo "<testsuite name=\"Mage-OS Suite\">"
222227
IFS=','; for dir in $DIRS; do echo " <directory>$dir</directory>"; done
228+
echo " <exclude>testsuite/Magento/IntegrationTest.php</exclude>"
223229
echo "</testsuite>"
224230
)
225231
echo "Debug: $NEW_TESTSUITE_ENTRY"
@@ -231,7 +237,8 @@ jobs:
231237
working-directory: ./main
232238
run: |
233239
export WARDEN="$(dirname $(pwd))/warden/bin/warden"
234-
${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
240+
# Important: Run the custom "Magento Integration Tests" test suite, which runs all other test suites
241+
${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
235242
236243
rum-memory-integration-tests:
237244
needs: [ matrix-calculator ]

0 commit comments

Comments
 (0)