pestphp / pest

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
https://pestphp.com
MIT License
9.62k stars 358 forks source link

Support for Magento 2 #52

Closed wpoortman closed 4 years ago

wpoortman commented 4 years ago

Would be nice to have support for Magento 2 version 2.3.3 and up.

composer require pestphp/pest:0.1.5 on minimum-stability "stable"

Problems

composer require pestphp/pest:0.1.5 on minimum-stability "dev"

Problems

nunomaduro commented 4 years ago

@wpoortman You need to follow exactly this installation process: https://pestphp.com/docs/installation/.

Can you try again and let me know?

wpoortman commented 4 years ago

@nunomaduro I've tried at first, but it dragged me into a whole nother dependency struggle.

Problems

nunomaduro commented 4 years ago

Well, you need to support at least phpunit 9.

owenvoke commented 4 years ago

By the way, it looks like the next version of the Magento FTF will probably support PHPUnit 9. https://github.com/magento/magento2-functional-testing-framework/blob/develop/composer.json#L20

wpoortman commented 4 years ago

By the way, it looks like the next version of the Magento FTF will probably support PHPUnit 9. https://github.com/magento/magento2-functional-testing-framework/blob/develop/composer.json#L20

I was just about to reply on this topic. Magento 2.4.0 creates a lot of happy faces. I've cloned the develop branch and tried to install Pest on this latest release.

The first few steps looked promising, but have some problems at step 4.

Problems

Any options or ideas?

owenvoke commented 4 years ago

Yeah, looks like Magento 2.4 will still use Symfony 4, however Pest (via Collision) requires Symfony 5. Not really sure how this can be resolved unless Magento somehow supported Symfony 5 components.