My Spring boot application has several tests classes.
When right-clicking a test class, and selecting the option to Run XYZtest it works with no problem.
But when selecting the folder that contains that class and selecting Run test in com.example.my I get an error of No junit.jar:
When running all the tests from mvn they run with no problems.
Following some suggestions, I added the junit.jar specifically in the Library section, but it didn't help:



