 [ ← blog / phpstorm ](/) Mar 07, 2023  ·  \#phpstorm  ·  1 min read 

# Running specific PHPUnit data provider data set with PhpStorm



I'm a huge fan of using [data sets for PHPUnit test cases](https://docs.phpunit.de/en/9.5/writing-tests-for-phpunit.html#data-providers) to cover as many permutations as possible with given inputs. The only problem is when you want to execute a specific data set for the test. I'm not much of a PHPUnit command line guru since I run tests individually in PhpStorm. My workflow is generally: run the test method and use re-run failed tests to execute those specific data sets. But! This has changed with recent versions of PhpStorm.

Now there is the ability to run an individual data set for a test. You can now click the gutter icon to run or debug a specific data set for a PHPUnit test like running individual tests.

     ![Data provider for a test with &quot;run&quot; arrows in the IDE gutter](/sites/default/files/styles/large/public/2023-02/Screenshot%202023-02-22%20at%204.31.19%20PM.png?itok=PtDP7daE) 

 

I don't know what version released this feature. It is not called out in the [release notes](https://www.jetbrains.com/phpstorm/whatsnew/) but I think it may have been with 2022.2 when they released highlighting failed test assertions.

 

  ![](/themes/custom/mglaman/images/headshot.webp)Thanks for reading

I write about Drupal, PHP, and the quiet infrastructure behind large sites — caching, config, and testing. New posts land every week or two.

 [Subscribe via RSS →](/rss.xml) [About me →](/about-me) 

 



 

  [← Older

Check out the "Drupal at your fingertips" developer reference guide

 ](/blog/check-out-drupal-your-fingertips-developer-reference-guide) [Newer →

PHPStan's new @not-deprecated annotation

 ](/blog/phpstans-new-not-deprecated-annotation)