Skip to content

ExecutionPhaseError from utbot is expected in generated Unit tests for Spring #2323

@alisevych

Description

@alisevych

Description

ExecutionPhaseError from utbot is expected in generated Unit tests for Spring

To Reproduce

  1. Install UnitTestBot plugin built from main in IntelliJ IDEA 2023.1 Ultimate
  2. Open sm***t project
  3. Generate tests for Cr***Resource class with Unit tests and Sm***tApplication selected

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 generatorcomp-instrumented-processIssue is related to Instrumented processcomp-springIssue is related to Spring projects supportctg-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