phpstan-magento icon indicating copy to clipboard operation
phpstan-magento copied to clipboard

Integration tests needed for CI pipeline

Open shochdoerfer opened this issue 3 years ago • 3 comments
trafficstars

The problem in #243 shows that we need integration tests to detect real-world problems with newer PHPStan releases. Since we have some dependencies deeper in PHPStan's core, things can break.

Ideally, we'd have a demo Magento module that covers all the different features the extension offers. This would also simplify my testing as currently, I am running the dev versions against multiple modules.

shochdoerfer avatar May 24 '22 06:05 shochdoerfer

Repo: https://github.com/bitExpert/phpstan-magento-int

shochdoerfer avatar Oct 05 '22 18:10 shochdoerfer

The repo already contains a Magento platform setup as well as GitHub Actions: One to install Magento and run PHPStan against Magento platform and one to run PHPStan against a stand-alone module.

Next up: Add a sample module with all the features covered by this extension.

shochdoerfer avatar Oct 09 '22 07:10 shochdoerfer

The integration repo is improving: The repo will run a nightly build against a demo module as part of a Magento platform project as well as a stand-alone module.

The first "testcases" have been added and the CI Pipeline got fine-tuned.

shochdoerfer avatar Oct 09 '22 18:10 shochdoerfer