Closed
Description
Initial set-up
Check that the IntelliJ Idea UTBot plugin can be successfully installed
- Take latest build from main
- Download plugin
- Check downloaded zip-file size < 100 MB
- Open IntelliJ IDE
- Remove previously installed UTBot plugin
- Clone or reuse UTBot project (https://github.com/UnitTestBot/UTBotJava.git)
- Open the project in the IDE
- Install the downloaded plugin
Go through manual scenarios
- 1
- 2
- 3
- 4
- 5
- 6
Pre-condition | Condition | Class under test | Output | |
---|---|---|---|---|
1 | No UtUtils class |
Generate a test class, that does not need utility methods | IntExamples.java |
No UtUtils class is produced. |
2 | No UtUtils class |
Generate a test class, that (a) needs a utility method, (b) does not use mocking | QueueUsages.java |
Regular UtUtils class (without mocking support) is produced. |
3 | Regular UtUtils class (without mocking support) exists |
Generate a test class, that (a) needs a utility method, (b) uses mocking | CommonMocksExample.java |
UtUtils class with mocking support is produced. |
4 | UtUtils class with mocking support exists |
Generate a test class, that (a) needs a utility method, (b) does not use mocking | QueueUsages.java |
UtUtils class with mocking support from the previous generation stays the same. |
5 | UtUtils class with mocking support exists |
Generate another test class, that (a) needs a utility method, (b) does not use mocking + create and choose another Test sources root: utbot-sample/src/test/java2 |
QueueUsages.java |
No additional UtUtils class is generated in utbot-sample/src/test/java2 . UtUtils class with mocking support from the previous generation stays the same. |
6 | No UtUtils class (delete previously generated test classes and UtUtils classes) |
Generate a test class, that (a) does not need utility methods (b) uses mocking | MockRandomExamples.java and choose the method randomAsParameter() for test generation |
No UtUtils class is produced. |
IDEA interaction checks
- Gradle / Maven / IntelliJ
- in new test sources root
- in test sources root in other module
Metadata
Metadata
Assignees
Type
Projects
Status
Done