GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - UnitTestBot/UTBotJava: Automated unit test generation and precise code analysis for Java

BranchesTags
Open more actions menu

Latest commit

 

History

1,141 Commits
1,141 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.run
.run
 
 
buildSrc/src/main/java
buildSrc/src/main/java
 
 
docs
docs
 
 
gradle/wrapper
gradle/wrapper
 
 
models/0
models/0
 
 
monitoring
monitoring
 
 
scripts
scripts
 
 
utbot-analytics-torch
utbot-analytics-torch
 
 
utbot-analytics
utbot-analytics
 
 
utbot-android-studio
utbot-android-studio
 
 
utbot-api
utbot-api
 
 
utbot-cli-go
utbot-cli-go
 
 
utbot-cli-js
utbot-cli-js
 
 
utbot-cli-python
utbot-cli-python
 
 
utbot-cli
utbot-cli
 
 
utbot-core
utbot-core
 
 
utbot-framework-api
utbot-framework-api
 
 
utbot-framework-test
utbot-framework-test
 
 
utbot-framework
utbot-framework
 
 
utbot-fuzzing
utbot-fuzzing
 
 
utbot-go
utbot-go
 
 
utbot-gradle
utbot-gradle
 
 
utbot-instrumentation-tests
utbot-instrumentation-tests
 
 
utbot-instrumentation
utbot-instrumentation
 
 
utbot-intellij-go
utbot-intellij-go
 
 
utbot-intellij-js
utbot-intellij-js
 
 
utbot-intellij-main
utbot-intellij-main
 
 
utbot-intellij-python
utbot-intellij-python
 
 
utbot-intellij
utbot-intellij
 
 
utbot-java-fuzzing
utbot-java-fuzzing
 
 
utbot-js
utbot-js
 
 
utbot-junit-contest
utbot-junit-contest
 
 
utbot-light
utbot-light
 
 
utbot-maven
utbot-maven
 
 
utbot-modificators-analyzer
utbot-modificators-analyzer
 
 
utbot-python-executor
utbot-python-executor
 
 
utbot-python-parser
utbot-python-parser
 
 
utbot-python-pycharm
utbot-python-pycharm
 
 
utbot-python
utbot-python
 
 
utbot-rd
utbot-rd
 
 
utbot-rider
utbot-rider
 
 
utbot-sample
utbot-sample
 
 
utbot-spring-analyzer
utbot-spring-analyzer
 
 
utbot-spring-commons-api
utbot-spring-commons-api
 
 
utbot-spring-commons
utbot-spring-commons
 
 
utbot-spring-framework
utbot-spring-framework
 
 
utbot-spring-sample
utbot-spring-sample
 
 
utbot-spring-test
utbot-spring-test
 
 
utbot-summary-tests
utbot-summary-tests
 
 
utbot-summary
utbot-summary
 
 
utbot-testing
utbot-testing
 
 
utbot-ui-commons
utbot-ui-commons
 
 
utbot-usvm
utbot-usvm
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
COPYRIGHT_HEADER.txt
COPYRIGHT_HEADER.txt
 
 
DEVNOTE.md
DEVNOTE.md
 
 
EnableLogging.md
EnableLogging.md
 
 
HowToUseLoggers.md
HowToUseLoggers.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

UnitTestBot: build and run tests Plugin and CLI: publish as archives

👉 Find UnitTestBot on JetBrains Marketplace.

👉 Visit the official UnitTestBot website.

What is UnitTestBot?

UnitTestBot is the tool for automated unit test generation and precise code analysis. It produces ready-to-use test cases for Java — with valid inputs and comments. It can even predict whether the tests fail or pass. You can analyze them, run them, show coverage — as if you've created them personally.

The symbolic execution engine paired with a smart fuzzing technique constitutes the core of UnitTestBot. It helps to find errors and prevent regressions in the code in a much more efficient way — UnitTestBot maximizes path coverage while minimizing the number of tests and false positives.

UnitTestBot represents all the test summaries in a human-readable format. The intelligible test method names and comments help you to control the whole testing process. Test failed? The summary refers you to the related branch or the condition under test.

Get started

Try the online demo to generate unit tests with one click.

Get to know the full version of UnitTestBot plugin with this quick guide:

Install UnitTestBot plugin for IntelliJ IDEA

Try the most straightforward path to start using UnitTestBot plugin.

  1. Please check the system requirements.
  2. Open your IntelliJ IDEA.
  3. Go to File > Settings... > Plugins > Marketplace.
  4. In the search field type UnitTestBot — you'll see the UnitTestBot plugin page.
  5. Press the Install button and wait until it changes to Installed, then click OK.

Now you can find the UnitTestBot plugin enabled in the File > Settings > Plugins window.

Do you want to manually choose the build or to update the plugin? Please refer to Install or update plugin in our user guide.


Generate tests with default configuration

Proceed to generating unit tests for the existing Java project. If you don't have one, create it using the JetBrains tutorial.

  1. Open your Java project in IntelliJ IDEA.
  2. Right-click the required package or a file in the Project tool window, scroll the menu down to the bottom and choose Generate Tests with UnitTestBot...
  3. In the Generate Tests with UnitTestBot window tick the classes or methods you'd like to cover with unit tests and press Generate Tests or Generate and Run.

Now you can see the resulting test class or classes in the Editor tool window.

Need to configure testing framework, mocking strategy or parameterization? Please check all configuration options.


Make use of generated tests

What can you do with the output?

  1. To find and fix the errors in your code:
  • Run the generated tests: right-click the test class or a folder with tests and choose Run.

  • In the Run tool window you can see the tests failed with the brief failure explanation.

  • Fix your errors if needed.

  1. To prevent regressions:
  • Having your errors fixed, run the tests again. "Passed"? Commit them as the regression suite.

  • Introduce changes in the code and run your tests as often as needed!

  • Tests failed? Decide whether it is a bug or a feature and generate new tests if necessary.

  1. To view coverage:

Right-click the test class, choose More Run/Debug > Run ... with Coverage.

Want to know more about test descriptions or SARIF reports? Please learn how to Get use of test results.


Contribute to UnitTestBot

UnitTestBot is an open source project. We welcome everyone who wants to make UnitTestBot better — introduce a new feature or report a bug. We have only one kind request for our contributors: we expect you to prove the necessity and quality of the suggested changes.

How can you do this? Refer to our Contributing guide.

Feel free to join the Discussions!

And thank you for your time and effort! ⭐

Find support

Having troubles with using UnitTestBot? Contact us directly.

Find more UnitTestBot products

You can also try UnitTestBot developed especially for C/C++.

You are welcome to contribute to it too!

About

Automated unit test generation and precise code analysis for Java

Topics

intellij-pluginjavasoftware-analysissymbolic-executiontest-generation

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

149 stars

Watchers

6 watching

Forks

43 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.