Be is the list of the features provided by magento-actions to do integration tests in Magento:
To run all test in phpunit.xml or phpunit.xml.dist
- name: 'To run all test in phpunit.xml or phpunit.xml.dist'
uses: MAD-I-T/magento-actions@master
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'integration-test'
elasticsearch: 1
To run integration tests by testsuite name
- name: 'To run integration tests by testsuite name'
uses: MAD-I-T/magento-actions@master
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'integration-test'
elasticsearch: 1
testsuite: "Memory Usage Tests"
To run integration tests by Class
- name: 'To run integration tests by Class'
uses: MAD-I-T/magento-actions@master
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'integration-test'
elasticsearch: 1
integration_class: "./testsuite/Magento/MemoryUsageTest.php"
To filter by the name in a specific class
- name: 'To filter by the name in a specific class'
if: ${{true}}
uses: MAD-I-T/magento-actions@master
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'integration-test'
elasticsearch: 1
integration_class: "./testsuite/Magento/MemoryUsageTest.php"
integration_filter: "testAppReinitializationNoMemoryLeak"