magento 2 automated testing,magento 2 integration tests,magento 2 phpunit,magento 2 testing framework,magento unit testing,magento 2 unit testing phpstorm,magento 2 unit test model

if you are looking for a way to run the tests for a specific module only then please read this post till end.

Magento 2 use phpunit framework for running test. You can run test per type and module with command:

{phpunit_executable} -c {Magentoroot}/dev/test/{type}/phpunit.xml[.dist] path/to/module/test/dir

For example:

Currently only unit test moved to modules. Also static and integration integrity test is working with all magento code.