-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorcomp-instrumented-processIssue is related to Instrumented processIssue is related to Instrumented processcomp-springIssue is related to Spring projects supportIssue is related to Spring projects supportctg-bugIssue is a bugIssue is a bugstatus-verifiedBug fix is verifiedBug fix is verified
Milestone
Description
Description
ExecutionPhaseError from utbot is expected in generated Unit tests for Spring
To Reproduce
- Install UnitTestBot plugin built from main in IntelliJ IDEA 2023.1 Ultimate
- Open
sm***tproject - Generate tests for
Cr***Resourceclass withUnit testsandSm***tApplicationselected
Expected behavior
ExecutionPhaseError is expected to be handled by UnitTestBot.
It should not be present in generated tests.
More informative exceptions should be.
Actual behavior
There is assertThrows with ExecutionPhaseError from utbot in every generated test.
Screenshots, logs
@Test
public void testBatchIndexByType1() {
Cr***Resource cr***Resource = new Cr***Resource();
assertThrows(org.utbot.instrumentation.instrumentation.execution.phases.ExecutionPhaseError.class, () -> cr***Resource.<method name>(null, null));
}Environment
IntelliJ IDEA version - 2023.1.2 Ultimate
Project - Maven
JDK - 1.8
Metadata
Metadata
Assignees
Labels
comp-codegenIssue is related to code generatorIssue is related to code generatorcomp-instrumented-processIssue is related to Instrumented processIssue is related to Instrumented processcomp-springIssue is related to Spring projects supportIssue is related to Spring projects supportctg-bugIssue is a bugIssue is a bugstatus-verifiedBug fix is verifiedBug fix is verified
Type
Projects
Status
Done