Skip to content

Regions names for parameterized tests #1301

Closed

Description

@alisevych

Description

Some tests generated for ArraysQuickSort.sort in Parameterized mode are presented as regular tests.
They are put in to region
///region Tests for method sort(int[], int, int, int[], int, int) that cannot be presented as parameterized
Now there are 2 types of such tests:

To Reproduce

  1. Install latest build from main into IDEA 2022.2.3
  2. Check File -> Settings are default: 95% Symbolic execution
  3. Open UTBotJava project
  4. Generate tests for ArrayQuickSort with JUnit5 and Parameterized on.

Expected behavior

Regions in the generated tests are supposed to be similar to the ones generated with parameterization off.

Actual behavior

///region Tests for method sort(int[], int, int, int[], int, int) that cannot be presented as parameterized

Regions in generated tests, that cannot be presented as parameterized, do not contain information about which suite they belong to.
Fuzzing / Symbolic, Successful / Explicitly thrown exceptions / ...

Visual proofs (screenshots, logs, images)

Regions for parameterized tests:
image

Regions for regular tests:
image

Environment

IntelliJ IDEA

Activity

  1. moved this to Todo in UTBot Javaon Nov 3, 2022
  2. alisevych commented on Nov 3, 2022

    @alisevych
    MemberAuthor

    @korifey @amandelpie @EgorkaKulikov
    Could you please check the expected and actual result? What would be the correct way to name these suites?

  3. added this to the 2022.12 Release milestone on Nov 8, 2022
  4. added
    comp-summariesSomething related to the method names, code comments and display names generation
    on Nov 8, 2022
  5. amandelpie commented on Nov 14, 2022

    @amandelpie
    Collaborator

    @alisevych could we say now that we are satisfied for today with the existing master?

  6. alisevych commented on Nov 17, 2022

    @alisevych
    MemberAuthor

    @alisevych could we say now that we are satisfied for today with the existing master?

    As for regions for parameterized tests - they are readable:

        ///region Test suites for executable org.utbot.examples.algorithms.Sort.quickSort
        ///region Parameterized test for method quickSort(long[], int, int)
        ///endregion
        ///region FUZZER: Tests for method quickSort(long[], int, int)
        ///endregion
        ///endregion

    Can we also leave information that these tests cannot be presented as parameterized - as it was done before?

  7. Repository owner moved this from Todo to Done in UTBot Javaon Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

comp-summariesSomething related to the method names, code comments and display names generationctg-bugIssue is a bugstatus-verifiedBug fix is verified

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions