LeMike
LeMike

Reputation: 3295

Having phpUnit debug configuration to test the current file in phpStorm

I like to have a debug configuration, that allows me to test the current file. In every project it is the same, so I like to put variables in these fields:

Debug Config

So when I am within a test I like to click "Debug" and it runs phpunit /my/current/test.php using the given phpunit config.

How to do that?

Upvotes: 0

Views: 551

Answers (2)

LeMike
LeMike

Reputation: 3295

  • Choose "Run" > "Edit configurations".
  • Open "Defaults" and choose the scenario you want
  • Place some default stuff there

Run a test using CTRL+SHIFT+F10 (in Ubuntu Gnome). It will use the default setup on the current focues file.

Upvotes: 2

Ferrakkem Bhuiyan
Ferrakkem Bhuiyan

Reputation: 2783

phpStorm details , you can try it

Upvotes: -1

Related Questions