Skip to content

Generated tests are disabled due to possible JVM crash #2454

Closed
@alisevych

Description

@alisevych

Description

Generated tests are disabled due to possible JVM crash with NoClassDefFoundError exception expected.

To Reproduce

  1. Install UnitTestBot Spring-IU-plugin built from main in IntelliJ IDEA
  2. Open sm***t project
  3. Generate tests for ColR class with No configuration / @SpringBootApplication configuration

Expected behavior

JVM crash is not expected for this class during test generation.
So valid enabled tests should be generated.

Actual behavior

Most of generated tests are disabled due to possible JVM crash.
With NoClassDefFoundError expected to be thrown.

Screenshots, logs

    @Test
    @Disabled(value = "Disabled due to possible JVM crash")
    public void testC***M***D***() {
        assertThrows(NoClassDefFoundError.class, () -> colR.c***M***D***(null, null, null, null, null, null, null, null, null, null, null, null));
    }

Environment

IntelliJ IDEA version - Ultimate 2023.1.4
Project - Maven
JDK - 1.8

Additional context

Not reproducing for other RestControllers in the project.
No tests are generated with Symbolic engine for simple Thread samples - in Spring-based project.
Reproducing for No configuration + No mocks

Metadata

Metadata

Assignees

Labels

comp-springIssue is related to Spring projects supportcomp-symbolic-engineIssue is related to the symbolic execution enginectg-bugIssue is a bugspec-internalInternal issue

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions