Close

     

Our Blog

Is it worth covering Magento 2 code by automated tests?

March 7, 2019 // by Maria Zayac

Automated tests implementation has always been an interesting topic for many store owners and managers. We receive many questions every day like: should we invest money for tests in addition to development? How will it help an online business? Which tests are better and why? Therefore, we want to shed some light on which types of tests are the most popular and useful and highlight key reasons of test importance.

Comments (0)

Magento Functional Testing Framework Overview

April 4, 2018 // by Stanislav Smovdorenko

Magento Functional Testing Framework was presented by Tom Erskine during contribution day which followed MageTestFest, which took place in Amerfoort in November last year. Right now it’s under heavy development, there were already 2 releases and it reached version 2.0.3.

Comments (0)

How to use the Magento 2 object manager in your unit tests?

November 18, 2016 // by Roman Glushko

Every unit test ninja faces troubles whenever he wants to test some real class functionality. Have you ever invoked toHtml() method of some block or beforeLoad() method of any collection? If you want to do it, you will need to mock a lot of classes that depend on other classes and so on. You would need to mock all of them, which would take a lot of time and effort. In a long run, you may blow up deadlines and it would really suck. Yes, you can try to change your testing strategy to avoid invoking such methods. But what if you still need to test them? I’m going to show you how I handled this problem.

Comments (3)