For a beginner, testing in Magento2 is quite confusing-

  • Functional tests- there is dev\tests\functional\tests\app, which contains tests. DevDocs says we need to install MTF. is MTF needed for running with Selenium, or i can run with Magento alone.

  • Unit tests, does that have to be written in module directory of dev/tests/unit folder.

  • We've tried to make testing documentation as simple as possible here. If it's still too confusing, please let us know how we can help. Commented Apr 26, 2016 at 12:24

1 Answer 1


MTF based on Selenium, so you cannot run it without.

Unit test should be written in module folder. In future I believe, all tests will be placed in module dir

  • What about app folder in functional..what purpose it serves?
    – huzefam
    Commented Apr 24, 2016 at 14:13
  • @huzefam, the dev\tests\functional\tests\app has similar structure to app\code
    – joni jones
    Commented Apr 25, 2016 at 11:46
  • @KAndy, in nearest future only unit tests will be located in module folders, because in most cases functional and integration tests are used only by core developers.
    – joni jones
    Commented Apr 25, 2016 at 11:51
  • @jonijones, It is problem. Any good developer must write integration tests for their modules
    – KAndy
    Commented Apr 25, 2016 at 11:58
  • I agree with you, but for most developers which use some module, tests are not needed. If tests will be included into module - they will increase package size, but as I said, most of developers will not use this tests.
    – joni jones
    Commented Apr 25, 2016 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.