Blog

erdfisch Blog

Artikel verschlagwortet mit/articles tagged with

phpunit

Use test coverage via xdebug directly in phpstorm

Single image: 
Body: 

This small blog post will show how to run unit tests in storm and directly access the test coverage based upon that.

If you want to use the shell, have a look at the following post
http://comm-press.de/en/blog/wrapping-my-head-around-phpunit-conversion…

Run phpunit for Drupal 8 in phpstorm

Body: 

Since http://drupal.org/node/1567500 Drupal 8 started to use PHPUnit as it's unit test framework. One advantage of PHPUnit is that there are tools around which support it already.

One example is phpstorm
which is a great IDE for php developers.

This blog post describes how you can setup to run phpunit in phpstorm.

Step 1: Create a new run configuration

You start by clicking on the arrow in the UI and choose "Edit Configuration". (See Screenshot).