Skip to content

Summaries disabled in config file is not applied #1321

Closed
@alisevych

Description

@alisevych

Description

enableSummariesGeneration=false is not applied to Java project from global config file settings.properties
Using plugin with:

To Reproduce

  1. Install release build into IDEA
  2. Add enableSummariesGeneration=false to the global config file ~\.utbot\settings.properties
  3. Restart IDEA 2022.2.3 (latest) - to apply settings.properties
  4. Create a new Java project (f.i. Maven project with JDK 11)
  5. Check File -> Settings -> Tools -> UnitTestBot
  6. Generate tests for a sample Java class

Expected behavior

  1. Summaries are supposed to be turned off - as in global config.
  2. Tests are supposed to be generated without Java docs, regions and desriptions.

Actual behavior

  1. Summaries are enabled.
  2. Summaries are generated - as it is default for Java project - with - Summaries should be turned off for Kotlin related generations #1283

Visual proofs (screenshots, logs, images)

image

public final class MainTest {
    ///region Test suites for executable org.example.Main.main

    ///region FUZZER: SUCCESSFUL EXECUTIONS for method main(java.lang.String[])

    /**
     * @utbot.classUnderTest {@link Main}
     * @utbot.methodUnderTest {@link Main#main(String[])}
     */
    @Test
    @DisplayName("main: arg_0 = String[3]")
    public void testMainWithNonEmptyObjectArray() {
        String[] args = {"noimn", "oesjb", "noimn"};

        Main.main(args);
    }
    ///endregion

    ///endregion
}

Originally posted by @alisevych in #1291

Metadata

Metadata

Labels

ctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions