Skip to content

Regions names for parameterized tests #1301

Closed
@alisevych

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

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

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions