Tests with same coverage are not minimized #2540
Labels
comp-fuzzing
Issue is related to the fuzzing
comp-minimizer
Issue is related to Minimization phase
ctg-bug
Issue is a bug
lang-java
Issue is related to Java support
Milestone
Description
There are generated two similar tests throwing StackOverflowError generated by Fuzzing.
Their coverage of the user code is the same.
But they are not minimized and both present in resulting test class.
To Reproduce
UTBotJava
projectRecursion$factorial
///region FUZZER: ERROR SUITE for method factorial(int)
Expected behavior
There should be one execution left after minimization with same coverage and same exception class.
Actual behavior
There are two tests on StackOverflowError with the same coverage.
They both cover lines 9, 12, 15 of Recursion.java
Screenshots, logs
Environment
IntelliJ IDEA version - Ultimate 2023.2
Project - Gradle
JDK - 17
Additional context
Reproducing with Symbolic + Fuzzing mode.
Reproducing with Recursion class copy-pasted into
spring-petclinic
project.Also there are many (now - 7) almost identical tests on timeout, with n = 1056, 36, 16416, 36, 2049, 133, 69
Two values are quite the same - 36:
The text was updated successfully, but these errors were encountered: