Code Coverage analysis Tool
RKTracer is a powerful code coverage analysis tool that helps you check the quality of your software tests—without changing a single line of your source code or logic. It supports all compilers, cross-compilers, and IDEs. Whether you’re doing unit testing, integration testing, functional testing, or system testing, RKTracer supports it all.
Save Time When You Update Your Code with Delta Code Coverage Report
When you update your software or add new features, you don’t need to run all your test cases again. RKTracer shows you exactly which parts of your code changed, and whether those parts are already covered by your current test cases. This is called delta code coverage, and it helps you
- Focus only on tests that matter
- Add new tests only when needed
- Ensure every line of code is tested before release
Real-Time Code Coverage for Many Languages
RKTracer automatically collects code coverage and test coverage data while you run tests on a host machine, embedded target device, emulator, simulator, or live server. It supports many programming languages, including:
- C, C++, CUDA, C#
- Kotlin, Java, JavaScript, TypeScript, Python, Golang
- Swift
You get real-time metrics on how much of your code is tested, which helps you understand if your software is ready to release.
Easy to Use—No Workflow Changes Needed
RKTracer is designed to fit right into your current setup. You don’t need to change your
- Build system
- Test scripts
- Development tools
Just prefix the rktracer keyword to your build command and start collecting coverage data when you run tests.
Better Collaboration and Faster Testing
With RKTracer, developers and testers work better together. You can:
- Find missing test cases quickly
- Reduce overall test time
- Make confident release decisions with accurate coverage reports
Advantages
Tool Integrations
How It Works
RKTracer isn’t just a code coverage tool — it’s a smart test coverage analysis solution that fits easily into your existing development environment and software testing tools.
Step 1: Integration with Build System
You don’t need to change your build system or source code or test setup.
- Just enable the plugin in your IDE (like Visual Studio, Eclipse, IAR, CCS, etc.), or
- Add rktracer as a prefix to your make or build command in the terminal
- RKTracer will automatically attach itself to the compiler and linker.
Step 2: Code Instrumentation
When you build your software, RKTracer:
- Takes the preprocessed source files from compiler
- Adds instrumentation code to track what parts of your code are being tested
- Sends the instrumented code to the compiler for final compilation
This happens behind the scenes — no changes are needed in your code manually.
Step 3: Runtime Library Integration
RKTracer also includes a runtime library.
This library:
- Is added automatically during the build
- Works based on your compiler or cross-compiler
- Ensures test data is collected even on embedded devices, simulators, or servers
Step 4: Run Your Tests
Now, run your:
- Unit tests
- Integration tests
- Functional tests
- System tests
RKTracer collects test coverage data while tests are running on a host, target device, simulator, or server. It stores this data in a text file.
Step 5: Generate Code Coverage Reports
After running the tests, just run the rkresults command.You will get:
- HTML reports – easy to view in a web browser
- XML reports – for CI/CD tools and SonarQube
- Detailed metrics like function coverage, branch coverage, MC/DC, and more
You can also generate delta coverage reports to check if newly added or modified code is tested.
Seamless and Continuous Integration
RKTracer supports:
- CI tools like Jenkins, Azure DevOps
- Merge coverage reports from multiple test runs (even across code changes)
- IDE plugins and command-line interface for flexible use
Summary: Why RKTracer Works So Well
- No changes to your source code
- Auto integration with any build system
- Works on all platforms and compilers
- Supports all test types
- Gives real-time, detailed coverage reports
With RKTracer, you can release your software with confidence — knowing that your code is fully tested.