Skip to content

JS. Display classes in the member list when action is called on a JS-file and there are 2+ classes inside #1943

Open
@alisevych

Description

@alisevych

Description

Display all classes in the members list when action is called on a JS-file

To Reproduce

  1. Install the latest IU plugin built from unit-test-bot/rc3102023 branch in IntelliJ Idea Ultimate 2022.2.4 - take utbot-intellij-IU-2023.3.* artefact
  2. Create a JavaScript project with sample code
  3. Copy samples folder from utbot-js module and paste it into this project
  4. Right-click on samples/scenarioMultyClassNoTopLevel.js in Project view and click on Generate Tests with UnitTestBot...
  5. Check Member list on dialog

Expected behavior

Two classes should be in the list.

Actual behavior

Two functions from the first class are listed.

Visual proofs (screenshots, logs, images)

image

Environment

IntelliJ IDEA Ultimate 2022.2.4
Node.js 18.14.2

Additional context

This is how it is mode in UnitTestBot test generation for Java.

Metadata

Metadata

Assignees

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-enhancementNew feature, improvement or change requestlang-javascriptIssue is related to JavaScript support

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions