Skip to content

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

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-conditionConditionClass under testOutput
1No UtUtils classGenerate a test class, that does not need utility methodsIntExamples.javaNo UtUtils class is produced.
2No UtUtils classGenerate a test class, that (a) needs a utility method, (b) does not use mockingQueueUsages.javaRegular UtUtils class (without mocking support) is produced.
3Regular UtUtils class (without mocking support) existsGenerate a test class, that (a) needs a utility method, (b) uses mockingCommonMocksExample.javaUtUtils class with mocking support is produced.
4UtUtils class with mocking support existsGenerate a test class, that (a) needs a utility method, (b) does not use mockingQueueUsages.javaUtUtils class with mocking support from the previous generation stays the same.
5UtUtils class with mocking support existsGenerate 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/java2QueueUsages.javaNo additional UtUtils class is generated in utbot-sample/src/test/java2. UtUtils class with mocking support from the previous generation stays the same.
6No UtUtils class (delete previously generated test classes and UtUtils classes)Generate a test class, that (a) does not need utility methods (b) uses mockingMockRandomExamples.java and choose the method randomAsParameter() for test generationNo 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