You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can run the PHPUnit tests that come with Bolt from within PHPStorm no problem and even throw a breakpoint in one of the methods and debug no problem.
However, I'm trying to figure out why I can't debug a PHPUnit test in one of my custom modules from within PHPStorm. When I right click on my test class in PHPStorm, I am prompted to create a test configuration for either a javascript file or a php script whereas if I click on one of the Bolt PHPUnit tests, PHPStorm just seems to "know" that it's a PHPUnit test.
I've detailed the issue further on the Drupal-VM issue queue and on stackexchange:
I realize this is kind of off topic so thanks for any help. I'm just trying to debug a few instance variables in a method and would rather not print to the screen.
The text was updated successfully, but these errors were encountered:
I naively tried to create the phpunit.xml at the same level as my test class,updating the path, but that didn't seem to help anything. Where is that xml being loaded/used? I'm not really sure what the phpunit.xml does in this case.
The xml is being used in the test:phpunit target. When you are executing phpunit tests, make sure that you're using the phpunit binary located in your project's vendor/bin directory.
I can run the PHPUnit tests that come with Bolt from within PHPStorm no problem and even throw a breakpoint in one of the methods and debug no problem.
However, I'm trying to figure out why I can't debug a PHPUnit test in one of my custom modules from within PHPStorm. When I right click on my test class in PHPStorm, I am prompted to create a test configuration for either a javascript file or a php script whereas if I click on one of the Bolt PHPUnit tests, PHPStorm just seems to "know" that it's a PHPUnit test.
I've detailed the issue further on the Drupal-VM issue queue and on stackexchange:
geerlingguy/drupal-vm#716
http://drupal.stackexchange.com/questions/203801/how-can-i-debug-phpunit-simpletests-for-a-custom-d8-module-in-phpstorm
I realize this is kind of off topic so thanks for any help. I'm just trying to debug a few instance variables in a method and would rather not print to the screen.
The text was updated successfully, but these errors were encountered: