Skip to content

Class is identified as abstract and no tests are generated #2647

Open
@alisevych

Description

@alisevych

Description

ComplicatedMethodsSubstitutionsStorageTest is identified as abstract and no tests are generated

To Reproduce

  1. Install -IU- UnitTestBot pluginin IntelliJ IDEA Ultimate 2023.2
  2. Open utbot project
  3. Generate tests for ComplicatedMethodsSubstitutionsStorageTest with default settings

Expected behavior

Some tests are expected to be generated

Actual behavior

No tests are generated with default settings.
Errors report is shown.

Screenshots, logs

Errors report for both methods:

        // Couldn't generate some tests. List of errors:
        // 
        // 1 occurrences of:
        /* We do not support testing for abstract classes (or interfaces)
        without any non-abstract inheritors (implementors). Probably, it'll be supported in
        the future. */

Environment

IntelliJ IDEA version - 2023.2 Ultimate
Project - Gradle
JDK - 17

Additional context

Fuzzing 100% generates tests for both methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp-symbolic-engineIssue is related to the symbolic execution enginectg-bugIssue is a bug

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions