Squish Coco
Code Coverage Measurement for C/C++
Overview
Documentation
Code Coverage
Quick Start and Tutorial
CoverageBrowser
CoverageScanner
Command Line Tools
FAQ
Appendix
Release Note
License
Documentation
Code Coverage Overview
Code Coverage Overview
Code instrumentation
Detection
Code insertion
Result of coverage analysis
Performance
Statistics
Other Metrics
Function Coverage
Line Coverage
Testing Methodologies
Hit vs Count
Strategies
Manual tests
Black box tests
Unit Tests
Automatic Tests
Quick Start and Tutorials
Quick Start
Getting Started with C++ code on Microsoft
®
Visual Studio
®
using the Microsoft
®
Visual Studio
®
Add-In
Getting Started with the Command Line Tools
Generating Code Coverage Instrumentations Without Modifying Projects
GNU Make
Microsoft
®
NMake
Microsoft
®
Visual Studio
®
Microsoft
®
MSBuild
Tutorial
Synopsis
Using
Squish Coco
Getting started with
Qt
Installing
Squish Coco
Compiling the Example Application
The First Code Coverage Results
Interactive testing
Writing unit tests
Working with code coverage data
Post mortem analysis
Evaluating 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
The Execution Management Window
Principles
Loading an Execution Report
Execution Comparison 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
JUnit Report
Statistics per Source File
Statistics per Method
HTML/XML Report
Text Report
Preferences
Save/Load Project
Comments
Watermarks
Cache
Miscellaneous
Command Line Arguments
CoverageScanner
Reference Manual
Introduction
Compiler Support
Invoking CoverageScanner
Supported Compilers
Microsoft
®
Visual C++
Intel
®
C++ Compiler
GNU gcc
IDE Support
GNU Makefile
CygWin
Scratchbox
CMake
Coverage Configuration
Visual Studio
GCC
Qt
qmake
moc
Visual Studio
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 and C++ Library
__coveragescanner_install
__coveragescanner_testname
__coveragescanner_teststate
__coveragescanner_add_html_comment
__coveragescanner_clear_html_comment
__coveragescanner_save
__coveragescanner_clear
__coveragescanner_filename
__coveragescanner_register_library
__coveragescanner_unregister_library
__coveragescanner_set_custom_io
Controlling the instrumentation during the compilation
C and C++ Pragma
Regular Expressions
Code Coverage of Libraries
Code Coverage of Static/Shared Libraries and DLL
Code Coverage of Plugins/Manually Loaded Shared Libraries
Generating Code Coverage Information directly from the Main Application
Generating Code Coverage Information directly from the Plugin
Code Coverage of Plugins Generated with Microsoft
®
Visual Studio
®
Code Coverage of Plugins Generated with GNU gcc
Test Suite and
Squish Coco
Execution Comment, Name And Status
Controlling the generation of the execution report
Generation of an execution report using UNIX
®
signals
Generation of an execution report using Microsoft
®
Windows event
Unit Testing
Test Framework Support
CppUnit
QTestLib
GoogleTest
CxxTest
Command Line Tools
cmreport
cmcsexeimport
cmmerge
cocolic
Frequently Asked Questions
Compiling
Using
CoverageScanner
with ccache (Unix only)
Compiling issue when using the Boost library
Microsoft
®
MsBuild does not call
CoverageScanner
on x86 platforms.
Instrumentation
Compiling issues of lambda expressions with Microsoft
®
Visual Studio
®
2010?
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
Unit Tests
How to get the code coverage of a library from my unit tests?
Miscellaneous
Where are stored the settings?
Installation issue:
PATH
variable wiped after installation
Installation issue: Microsoft
®
Visual Studio
®
Compiler warning D9002
Microsoft
®
Visual Studio
®
2010 PATH to
Squish Coco
not removed from the Uninstaller
Installation issue: Microsoft
®
Visual Studio
®
Add-In is not installed
Microsoft
®
Visual Studio
®
Add-In is crashing when "My Documents" is on a network drive
Is it possible to debug
CoverageScanner
API?
How to report an issue concerning
CoverageScanner
?
Appendix
Code Coverage Benchmarks
Test Algorithm
Benchmarks
Location of the License File
Customizing I/O of
CoverageScanner
library
Custom I/O using C file access
Custom I/O using SFTP protocol
CoverageScanner Adaptation to a Tool Suite