Description
Description
There should be the following regions in the generated test class:
.Test suites for executable ... and sub-regions inside:
..SUCCESSFUL EXECUTIONS for method...
..ERROR SUITE for method...
..EXPLICITLY THROWN UNCHECKED EXCEPTIONS for method...
Now successful test and tests with exceptions are put into one unnamed region - when there are some generated by Fuzzing.
To Reproduce
Steps to reproduce the behavior:
- IntelliJ IDEA 2022.1.4 is running with UTBot installed (https://github.com/UnitTestBot/UTBotJava/actions/runs/2955784591)
- Check that Fuzzing is on
- Open/clone UTBotJava project
- Open utbot-sample/src/main/java/org/utbot/examples/objects/ObjectWithPrimitivesExample.java
- Generate tests for createObject method
- Open Structure toolbar for the generated test
Expected behavior
Generated tests are supposed to be distributed into 3 sub-regions:
. SUCCESSFUL EXECUTIONS for method...
. ERROR SUITE for method...
. EXPLICITLY THROWN UNCHECKED EXCEPTIONS for method...
This is the screenshot from the demo made on July 25:
Actual behavior
There are only two regions: unnamed and ERROR suite.
Successful test and one with IAE are put together into unnamed region.
Environment
Windows 10 Pro
IntelliJ IDEA 2022.1.4
JDK 11, language level 8
Additional context
Reproducing on other classes too - when there are tests generated by Fuzzing in the result test class.
Metadata
Metadata
Assignees
Type
Projects
Status