Skip to content

Suggest to generate tests for nested classes and static methods found inside interfaces and abstract classes #1400

Closed
@alisevych

Description

@alisevych

Description

Currently if we call action on interface or abstract class - the action to Generate tests with UnitTestBot... is not available.
But there can be nested classes and static methods inside.
Suggest test generation for them.

To Reproduce

  1. Run the 'lrs' project in IntelliJ Idea with installed UnitTestBot plugin
  2. Find abstract class LongRangeSet in Project view tree
  3. Call Generate tests with UnitTestBot... action either from context menu or from inside the class

Expected behavior

UnitTestBot dialog with nested classes as members should be opened.
There are 5 nested final classes inside and several static methods: LongRangeSet.divide() fore example.

Actual behavior

UnitTestBot dialog is not opened.
Notification is shown: Generate tests with UtBot for the abstract class or interface LongRangeSet is not supported.

Visual proofs (screenshots, logs, images)

image

image

Environment

IntelliJ IDEA - all supported versions

Metadata

Metadata

Assignees

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-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