Running the unit tests in PhpStorm¶
- Follow and complete all steps in the previous chapter
- Configure PhpStorm to use the shell script found in Resources/Scripts/ as PHP binary
- Edit the default run configuration of PHPUnit and add the environment variable named ENV_TYPO3_SITE_PATH
- Set the value of the variable to the absolute path of your TYPO3 installation without trailing slash.
- Set the path to the phpunit extension as include path in PhpStorm
- Now you can right-click any test, test file or test folder and select “run” to run the tests.
For more details and some screenshots you can read this blog post:
http://insight.helhum.io/post/63972451370/executing-typo3-cms-unit-test-tests-in-phpstorm