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

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.

Activity

  1. added
    ctg-enhancementNew feature, improvement or change request
    comp-uiImprovements of plugin UI appearence and functionality
    lang-javascriptIssue is related to JavaScript support
    on Mar 14, 2023
  2. changed the title [-]JS. Display all classes in the members list when action is called on a JS-file [/-] [+]JS. Display classes in the member list when action is called on a JS-file and there are 2+ classes inside[/+] on Mar 14, 2023
  3. alisevych commented on Mar 16, 2023

    @alisevych
    MemberAuthor

    Reproducing

    on fresh version of unit-test-bot/rc3102023 branch. IU-plugin from this run:
    https://github.com/UnitTestBot/UTBotJava/actions/runs/4434721564
    The last commit for this run was dccfdad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions