Open
Description
Description
JavaScript. Tests generated for static methods. No file instantiation is needed
To Reproduce
- Install the Release 2022.12.1 plugin into Idea Ultimate 2022.2.4
- Create a JavaScript project with sample code
- Copy
scenarioStaticMethod.js
fromutbot-js
module and paste it into this project - Generate tests for this file
- 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
Type
Projects
Status
Todo