UnitTestBot / UTBotJava

Automated unit test generation and precise code analysis for Java
Apache License 2.0
136 stars 43 forks source link

Improve summaries for sandboxed tests by Symbolic execution #901

Open alisevych opened 2 years ago

alisevych commented 2 years ago

Description

Summaries are missing when the test is generated for code with unpermitted operations in Threads. And when Symbolic execution is used only.

To Reproduce

Steps from #895 Plus Fuzzing is OFF - only Symbolic engine is on:

image

Expected behavior

Generated test should have Description, Java doc, region should be named - accordingly.

New kind of tests handling by Summaries should be considered.

Actual behavior

Generated tests are not disabled due to Sandbox. And do not have any description or Java doc. Region name is empty too. When Fuzzing mode is on - description and region name is generated.

Visual proofs (screenshots, logs, images)

public class SecurityCheckTest {
    ///region Test suites for executable SecurityCheck.read

    ///region

    @Test
    public void testRead1() throws Throwable {
        SecurityCheck securityCheck = new SecurityCheck();

        int actual = securityCheck.read();

        assertEquals(10, actual);
    }
    ///endregion

    ///endregion
}

Environment

Windows 10 Pro IntelliJ IDEA 2022.1.4 JDK 8

alisevych commented 2 years ago

Depends on #895

amandelpie commented 1 year ago

Unfortunately I have no idea who could help with this issue, probably @Markoutte or @EgorkaKulikov

EgorkaKulikov commented 1 year ago

Blocked by https://github.com/UnitTestBot/UTBotJava/issues/895