I have multiple test folders that are JUnit test cases for different purposes (e.g. unit tests, functional tests, etc) arranged at the same level like so:
src/com.foo...
unittests/com.foo...
functionaltests/com.foo...
(src is my source folder (the classes under test)
I would like to right-click on unittests and run all the unit tests there without running the functionaltests, but it looks like IntelliJ is just using the package names and the output directory to determine what tests to run. Since both unittests and functionaltests output to the same directory, all their tests get lumped together in the JUnitRunner's eyes. If I could assign separate output folders for the different types of tests, that would work too.
It becomes a massive hassle to run all of the tests all of the time when our top 6 tests take 75% of the run-time (there are about 450 tests). When you're working on a specific subset of tasks, that extra runtime is just lost development time.
+1 for this