See Running and debugging PHPUnit tests in PHPStorm with DDev and xdebug for a video demo covering configuration for running and debugging:
- Unit tests
- Kernel tests
- Functional tests
- FunctionalJavascript tests
- Drupal Test Traits (ExistingSiteSelenium2DriverTest)