Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tool that generates unit test by C/C++ source code, trying to reach all branches and maximize code coverage

License

NotificationsYou must be signed in to change notification settings

UnitTestBot/UTBotCpp

Repository files navigation

Build UTBot and run unit testsPublish UTBot as an archive

UTBot C/C++ generates test cases by code, trying to cover a maximum number of statements and execution paths. We treat source code as a source of truth, assuming that behavior is correct and corresponds to initial user demand. Generated tests are placed in the so-called regression suite. Thus, we fix current behavior with the help of generated test cases. Using UTBot for C/C++, developers obtain full control of their code. No future change can break the code without being noticed once it's covered with tests generated by UTBot. This way, modifications made by developers to an existing code are much safer. Hence, with the help of generated unit tests, UTBot provides dramatic code quality improvement.

Features demonstration in 5 min (click to see onYouTube):

UTBot C/C++ Demo

Try UTBot demo onlinehere!

More info onwiki

How to install and use UTBot

For now, you can only use UTBot under Ubuntu 20.04 and above.Navigate to theReleases GitHub page and download last version of UTBot.

UTBot is distrbuted as an archive that contains:

  1. A packutbot_distr.tar.gz that contains UTBot binary and its dependencies;
  2. UTBot plugin for Visual Studio code —utbot_plugin.vsix;
  3. A versionversion.txt;
  4. A run scriptunpack_and_run_utbot.sh.

To launch UTBot,unzip the archive and run the./unpack_and_run_utbot.sh command (we recommend doing it in a fresh directory to make UTBot removing easier). To remove UTBot, simply delete this directory.

To install UTBot VSCode plugin, use VSCodeInstall from VSIX command.

How to contribute to UTBot

SeeContributing guidelines andDeveloper guide

About

Tool that generates unit test by C/C++ source code, trying to reach all branches and maximize code coverage

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors25


[8]ページ先頭

©2009-2025 Movatter.jp