Skip to content

Commit

Permalink
Summaries disabled in config file is not applied #1321 (#1500)
Browse files Browse the repository at this point in the history
As for key enableSummariesGeneration, settings.properties provides default value for plugin settings
  • Loading branch information
Vassiliy-Kudryashov authored Dec 9, 2022
1 parent 6b838cd commit da3ea23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import com.intellij.psi.PsiClass
import com.intellij.psi.PsiJavaFile
import com.intellij.refactoring.util.classMembers.MemberInfo
import org.jetbrains.kotlin.psi.KtFile
import org.utbot.framework.UtSettings
import org.utbot.framework.plugin.api.JavaDocCommentStyle
import org.utbot.framework.util.ConflictTriggers
import org.utbot.intellij.plugin.settings.Settings
Expand Down Expand Up @@ -54,7 +55,7 @@ class GenerateTestsModel(
val conflictTriggers: ConflictTriggers = ConflictTriggers()

var runGeneratedTestsWithCoverage : Boolean = false
var enableSummariesGeneration : Boolean = true
var enableSummariesGeneration : Boolean = UtSettings.enableSummariesGeneration
}

val PsiClass.packageName: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Settings(val project: Project) : PersistentStateComponent<Settings.State>
var fuzzingValue: Double = 0.05,
var runGeneratedTestsWithCoverage: Boolean = false,
var commentStyle: JavaDocCommentStyle = JavaDocCommentStyle.defaultItem,
var enableSummariesGeneration: Boolean = true
var enableSummariesGeneration: Boolean = UtSettings.enableSummariesGeneration
) {
constructor(model: GenerateTestsModel) : this(
codegenLanguage = model.codegenLanguage,
Expand Down

0 comments on commit da3ea23

Please sign in to comment.