Skip to content
Sheng Chen edited this page May 6, 2023 · 4 revisions

I cannot see the test run button in the editor gutter, why?

Only the files which are in the test scope will have the run button in the editor. Here is how you can configure the test scope for different kinds of projects:

Project KindConfiguration
Maven projectsUse <testSourceDirectory/> to configure the test source paths. Default is src/test/java.
Gradle projectsUse sourceSets to configure the test source paths. Default is src/test/java.
Eclipse projectsAll the source files will be treated as testable files.
Invisible projectsAll the source files will be treated as testable files.

Note: Files that do not belong to the current workspace will be ignored.

Clone this wiki locally