Skip to content

Commit 8ff1930

Browse files
Don't suggest autogenerated test source roots (#2080)
target/generated-test-sources is suggested in UI dialog as Test sources root #2068
1 parent 0be3e02 commit 8ff1930

File tree

1 file changed

+1
-1
lines changed
  • utbot-ui-commons/src/main/kotlin/org/utbot/intellij/plugin/ui/utils

1 file changed

+1
-1
lines changed

utbot-ui-commons/src/main/kotlin/org/utbot/intellij/plugin/ui/utils/RootUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fun SourceFolder.isForGeneratedSources(): Boolean {
5151
val resourceProperties = jpsElement.getProperties(resourceRootTypes + testResourceRootTypes)
5252

5353
val markedGeneratedSources =
54-
properties?.isForGeneratedSources == true && resourceProperties?.isForGeneratedSources == true
54+
properties?.isForGeneratedSources == true || resourceProperties?.isForGeneratedSources == true
5555
val androidStudioGeneratedSources =
5656
IntelliJApiHelper.isAndroidStudio() && this.file?.path?.contains("build/generated") == true
5757

0 commit comments

Comments
 (0)