-
Notifications
You must be signed in to change notification settings - Fork 45
Open
@alisevych
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