Skip to content

Generate tests with plugin

Olga Naumenko edited this page Nov 17, 2022 · 1 revision

To generate tests for Java code with UTBot plugin you must do the following steps:

  1. Open your Java Project in IntelliJ IDEA and find a class you want to cover by unit tests:
IDEA project

IDEA project

  1. Click to Alt + Shift + U - or - right mouse click on the file → Generate tests with UtBot..:
How to generate tests with plugin

How to generate tests with plugin

  1. Select a method you'd like to cover by tests:
How to choose method for unit test generation

How to choose method for unit tests generation

  1. Click OK:
Generated tests

Generated tests

  1. That's is: tests are generated automatically w/o any additional actions from an user side
Clone this wiki locally