Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JS. Invalid file instantiation for static methods #2050

Open
Assignees
Labels
ctg-bugIssue is a bug lang-javascriptIssue is related to JavaScript support
@alisevych

Description

Description

JavaScript. Tests generated for static methods. No file instantiation is needed

To Reproduce

  1. Install the Release 2022年12月1日 plugin into Idea Ultimate 2022年2月4日
  2. Create a JavaScript project with sample code
  3. Copy scenarioStaticMethod.js from utbot-js module and paste it into this project
  4. Generate tests for this file
  5. Run the tests

Expected behavior

Generated tests should be executed.

Actual behavior

Tests are broken.

Visual proofs (screenshots, logs, images)

The following tests are generated:

it("testFunctionToTest1", function ()
 {
 let object = new fileUnderTest.Object(true)
 
 let actual = object.functionToTest(1.0)
 
 assert.deepEqual(1, actual)
}
)

Environment

IntelliJ IDEA 2022年2月4日 Ultimate
The same test are generated on IDEA 2022年3月3日 - with the newest plugin built from unit-test-bot/rc2023.3 branch

Metadata

Metadata

Assignees

Labels

ctg-bugIssue is a bug lang-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

      AltStyle によって変換されたページ (->オリジナル) /