Unit Test Case Generator | GoogleTest/GTest Framework | Unity Framework
RKTracer Unit Testing tool for GoogleTest
The RKTracer tool can help you save time, effort, and money while verifying embedded systems and desktop applications. It aids in the automated generation of unit test cases in GTest and integration tests for C and C++ code, as well as the generation of code coverage data.
You can run unit tests within your development workflow.
You can run unit tests and integration tests on the build machine or embedded targets and verify that application code behaves as expected
You can also add the RKTracer unit test cases generated to existing applications as well as integrate them directly with continuous test environments
Capabilities of the RKTracer
Advantages
Generating unit tests
Unit tests can be generated using GoogleTest or Unity Framework. The RKTracer user interface(RKUNIT GUI) provides a project tree structure with a list of the source files and their corresponding functions.
- You can generate a test case for a selected function.
- You can generate multiple test cases for the same function, based on the requirement with user-defined input values and expected output/assert check.
- No need to modify your application code to test private, protected functions and file static functions.
- Furthermore, you can fully customize/edit the auto-generated unit test cases and run unit tests independent of rktracer tool on host platform or target device.
How does it work?
Integrate RKTracer with existing build environment through command line interface or IDEs, for example, IAR Embedded Workbench IDE, Keil uVision IDE, Visual Studio IDE, and many more.
From the official git repository, clone the GoogleTest framework or Unity framework to the rktracer installation folder.
Enable the RKTracer tool and rebuild applications in your build environment. The RKTracer tool will auto-detect the compiler or cross-compiler and add the runtime time libraries (zero time spent on tool configuration) to your project build system.
RKTracer takes care of adding the auto-generated unit tests to your build system automatically.
You can run unit tests on your native host or embedded device, independently of the rktracer tool, in your existing build setup or test environment.
With just a click of the mouse, generate code coverage reports for your application.