PHPStorm not autodetecting PHPUnit test when right clicking
After upgrading to 2017.2 (this still happens with 2017.3), my project no longer auto detects PHPUnit tests.
I've marked the test root, and setup a separate PHPUnit test configuration. The test configuration works fine and runs my entire test suite. But I'm really interested in being able to run/debug individual test files separately. Screenshot below of what right clicking gives me in terms of run and debug options (it either attempts to open the file in a browser, or execute it as raw php without using phpunit). I am able to run individual files via the command line separately from PHPStorm, so I believe this is a configuration issue and not code related.
Details:
PHPStorm 2017.3
Laravel 5.5 with Homestead
Php 7

Please sign in to leave a comment.
Doh, ok problem solved.
Turns out I had excluded the /vendor directory from PHPStorm. Removing vendor/ from my exluded directories list in PHPStorm preferences -> Directories solved the issue.