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 Kind Configuration
Maven projects Use <testSourceDirectory/> to configure the test source paths. Default is src/test/java.
Gradle projects Use sourceSets to configure the test source paths. Default is src/test/java.
Eclipse projects All the source files will be treated as testable files.
Invisible projects All 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