Skip to content

Manual testing of UtUtils class generation - build#2022.11.502. #1233

Closed
@alisevych

Description

@alisevych

Initial set-up

Check that the IntelliJ Idea UTBot plugin can be successfully installed

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

Labels

ctg-qaIssue is related to QA process

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions