TestCocoon
Code Coverage Measurement for C/C++ and C#
Overview
Demonstration
Documentation
Code Coverage
Tutorial
CoverageBrowser
CoverageScanner
FAQ
Appendix
Download
User Forum
License
Documentation
Code Coverage Overview
Code Coverage Overview
Code instrumentation
Detection
Code insertion
Result of coverage analysis
Performance
Statistics
Testing Methodologies
Hit vs Count
Strategies
Manual tests
Black box tests
Unit Tests
Automatic Tests
Tutorial
Synopsis
TestCocoon
and it’s usage
Getting started with
Qt
TextEdit
sample
Installing
TestCocoon
Compiling
TextEdit
First code coverage result
Interactive testing
Writing unit tests
Working with code coverage data
Post mortem analysis
Evaluation of the impact of a hot fix
Black-box testing/distributed testing
Verifying if a bug fix is correctly tested
Conclusion
CoverageBrowser
Reference Manual
Introduction
Black box and white box testing
Execution Management Window
Principle
Loading an Execution Report
Test Benefit Analysis Mode
Source Browser Window
Method Browser Window
Source Viewer Window
Source Display
Color Convention
Comments
Editing Comments
Removing Comments
Explanation Window
Statistic Window
Filter
Wildcard Expression
Regular Expression
Pattern matching
String substitution
Code Coverage Level
Code Coverage Algorithm
Optimized Execution Order
Comparing Releases
Reference Database
Coverage analysis of modified/unmodified source code
Instrumentation Database
Merge
Import Unit Tests
Exporting Statistics
EMMA-XML Report
Statistics per Source File
Statistics per Method
HTML/XML Report
Text Report
Preferences
Save/Load Project
Comments
Watermarks
Cache
CoverageScanner
Reference Manual
Introduction
Compiler Support
Supported Compilers
C# compilers
Microsoft
®
Visual C++
Intel
®
C++ Compiler
GNU gcc
IDE Support
GNU Makefile
Scratchbox
CMake
Coverage Configuration
Visual Studio
GCC
Qt
qmake
moc
Visual Studio
Visual Studio .NET C# Compiler
Visual Studio .NET C++ Compiler
Visual Studio Add-In
Visual C++ Express
Visual Studio 6.0
eMbedded Visual C++
Eclipse
Xcode
Command Line
Synopsis
Instrumenting using preprocessor defines
C/C++ Library
__coveragescanner_install
__coveragescanner_testname
__coveragescanner_teststate
__coveragescanner_save
__coveragescanner_clear
__coveragescanner_filename
__coveragescanner_register_library
__coveragescanner_unregister_library
__coveragescanner_set_custom_io
C# Library
CoverageScanner.__coveragescanner_testname
CoverageScanner.__coveragescanner_teststate
CoverageScanner.__coveragescanner_save
CoverageScanner.__coveragescanner_clear
CoverageScanner.__coveragescanner_filename
CoverageScanner.__coveragescanner_set_custom_io
Controlling the instrumentation during the compilation
C/C++ Pragma
C# regions
Regular Expressions
Code Coverage of Libraries
Code Coverage of Static/Shared Libraries and DLL
Code Coverage of Plugins/Manually Loaded Shared Libraries
Code Coverage of Plugins Generated with Microsoft
®
Visual Studio
®
Code Coverage of Plugins Generated with GNU gcc
Test Suite and
TestCocoon
Execution Name And Status
Unit Testing
Test Framework Support
CppUnit
QTestLib
GoogleTest
CxxTest
CoverageScanner Adaptation to a Tool Suite
Frequently Asked Questions
Code Coverage Instrumentation
Does
TestCocoon
support line coverage?
Compiling
Microsoft
®
Visual Studio
®
rebuilds always my project even if it is not modified.
Instrumentation
How to exclude a source file from the code coverage analysis?
My source code contains inline functions, are they instrumented?
Is it normal that the .csmes file contains a copy of the source code?
CoverageBrowser
Performance
Is there a way to minimize the CPU usage?
When I’m exporting the statistics per methods I can only see the 65536 first entries
Miscellaneous
Whre are stored the settings?
Installation issue:
CoverageBrowser
does not work on my Linux
™
distribution
Installation issue:
PATH
variable wiped after installation
Installation issue:
CoverageBrowser
windows are not redraw correctly
Installation issue: Microsoft
®
Visual Studio
®
Compiler warning D9002
Installation issue: Microsoft
®
Visual Studio
®
2005 & 2008 Add-In is not installed
How to report an issue concerning
CoverageScanner
?
How to debug Microsoft
®
Visual Studio
®
2005 & 2008 Add-In?
How can I get informed about new releases?
Appendix
Additional Tools
cmreport
cmcsexeimport
cmmerge
Code Coverage Benchmarks
Test Algorithm
Benchmarks
Building
TestCocoon
Required Tools
Build Installer
Build Steps
Customizing I/O of
CoverageScanner
library
Custom I/O using C file access
Custom I/O using SFTP protocol