What is UTBotCpp?
UTBotCpp generates test cases by code, trying to cover maximum statements and execution paths. We treat source code as source of truth assuming that behavior is correct and corresponds to initial user demand. Generated tests are placed in so-called regression suite. Thus, we fixate current behavior by generated test cases. Using UTBotCpp 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.
How to install and use UTBot
For now, you can only use UTBot under Ubuntu. UTBot has been tested under Ubuntu 14, 16, and 18. Navigate to the Releases GitHub page and download any version of UTBot. UTBot is distrbuted as an archive that contains
- A pack
utbot_distr.tar.gz
that contains UTBot binary and its dependencies; - UTBot plugin for Visual Studio code —
utbot_plugin.vsix
; - A version
version.txt
; - A run script
unpack_and_run_utbot.sh
.
To launch UTBot, unzip
the archive and run the chmod +x unpack_and_run_utbot.sh && ./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 VSCode Install from VSIX command.
How to contribute to UTBot
See DEVNOTE.md.