Magento 2 Testing Frameworks
Magento 2 Testing Frameworks
I'm pretty bad at remembering everything!
I want to implement Unit tests to be part of my daily routine!
I did a few, but still need to do more!
Everyone should do it, starting yesterday! (that includes me)
If you want to put it on the brand new Magento Marketplace, your module needs to have tests!
If you write something to day, you just want it to last another.
Especially when working with Magento 2(or large codebase in general)
/dev/unit/phpunit.xml.dist
It will run all unit-tests for every module, internally/externally/vendor(framework/module), so you can test the whole Magento 2 scope.
composer install --dev (default)
Just add a Test/Unit/*Test.php and Magento will autoMagentely pick them up
Example: Roman number test
Questions?