Skip to content

Improve summaries for sandboxed tests by Symbolic execution #901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks
alisevych opened this issue Sep 9, 2022 · 3 comments
Open
3 tasks

Improve summaries for sandboxed tests by Symbolic execution #901

alisevych opened this issue Sep 9, 2022 · 3 comments
Assignees
Labels
comp-sandboxing Issue is related to sandboxing unpermitted operations by Java Security Manager comp-summaries Something related to the method names, code comments and display names generation ctg-enhancement New feature, improvement or change request

Comments

@alisevych
Copy link
Member

alisevych commented Sep 9, 2022

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.

  • Test name?
  • Java doc?
  • Which region name would be appropriate for tests disabled due to sandbox ?

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 alisevych added the ctg-enhancement New feature, improvement or change request label Sep 9, 2022
@korifey korifey moved this to Todo in UTBot Java Sep 9, 2022
@alisevych
Copy link
Member Author

Depends on #895

@alisevych alisevych changed the title Summaries to be added for the generated test which should be sandboxed with Fuzzing off Summaries for the sandboxed test with Fuzzing off Sep 9, 2022
@alisevych alisevych modified the milestone: Video Presentation Sep 12, 2022
@amandelpie amandelpie added the comp-summaries Something related to the method names, code comments and display names generation label Sep 14, 2022
@amandelpie
Copy link
Collaborator

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

@alisevych alisevych added the comp-sandboxing Issue is related to sandboxing unpermitted operations by Java Security Manager label Jan 19, 2023
@EgorkaKulikov
Copy link
Collaborator

Blocked by #895

@alisevych alisevych changed the title Summaries for the sandboxed test with Fuzzing off Improve summaries for sandboxed tests by Symbolic execution May 15, 2023
@alisevych alisevych removed their assignment Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-sandboxing Issue is related to sandboxing unpermitted operations by Java Security Manager comp-summaries Something related to the method names, code comments and display names generation ctg-enhancement New feature, improvement or change request
Projects
Status: Todo
Development

No branches or pull requests

5 participants