Test your damn code!

Make it part of your workflow. Test often and don’t get test for good things. Test for errors, bad input, … Also test for performance. Oh, you wrote a sweet sweet function … how well does it perform when ran 10 times? 100x? 100000000000x?

To help you on your way, here is a short set of videos on Magento 2’s PHPUnit testing.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.