| |
Cantata++ has been designed around the
requirements of the C++ language to produce a tool which
allows developers to perform testing and verification of
C++ software at reasonable economic cost. Only C++ developers truly
understand the problems of testing C++. Until now, C++
software simply could not be tested thoroughly within
reasonable economic constraints.
Cantata++ revolutionises
the testing of C++ and provides:
- Support for the
latest ISO C++ language features
- Full support for the
object-oriented (OO) design and implementation
paradigm
- The ability to re-use
test cases as well as code
- OO coverage metrics
- OO static analysis
metrics
Cantata++'s features fall
into three main areas:
| Dynamic Testing |
Many of the problems encountered in
testing C++ stem from the difficulty of
separating the classes under test from the rest
of the system in order to test them thoroughly.
Cantata++ works by allowing users full control of
the interface between the software under test and
other software. This means that any call from the
class under test can be isolated from other parts
of the system, or utilise the real software as
selected by the tester. The user can even
override the default operation of C++ built-in
operators such as 'new'. This puts the tester
firmly back in control of the test - not driven
to compromise by the architecture of the
language. The
dynamic testing features of Cantata++ include:
- A Test
Harness which allows the user to quickly
develop structured, repeatable tests.
- Powerful data
value checking facilities.
- Testing of
exceptions and templates.
- Support for
test case re-use.
- Full control
of the interface between the software
under test and other software.
- Access to
data within the implementation of the
software under test which is normally
hidden.
|
| Coverage Analysis |
Cantata++ provides a rich variety of
coverage measures which may be used to assess the
thoroughness of dynamic testing. These metrics
may be viewed both as traditional non-OO coverage
measures, or using Cantata++'s powerful OO
coverage reporting facilities. The latter provide
far more meaningful measures of coverage for C++
code and allow the user to, for instance,
determine the coverage of a single instance of a
template, or across all instances of the
template. This gives the user a fine level of
granularity in setting coverage targets and
allows rigorous checking of the coverage of OO
code. Coverage
measures include:
- Statements
and Basic Blocks
- Decisions
- Call-return
and Entry Point
- Boolean
operators.
- MC/DC
coverage (Modified Condition / Decision
Coverage as required by DO-178B)
- Boundary
value coverage for equality / inequality
operators.
All the above
metrics can be reported as aggregate results
across any number of instances of objects in the
OO implementation, or as results for single
instances.
|
| Static Analysis |
Cantata++ provides facilities for
gathering and reporting over 300 static analysis
metrics on the code. Metrics include:
- Chidamber and
Kemerer's MOOSE metric set.
- Fernando
Brito e Abreu's MOOD metric set.
- Bansiya and
Davis' QMOOD metric set.
- Robert
Martin's object-oriented dependency
metrics, McCabe's object-oriented
metrics, and Bansiya's class entropy
metrics.
- Halstead's
Software Science metrics.
- McCabe's,
Myers' and Hansen's cyclomatic metrics.
- Basic counts
of language constructs - comments, lines
of code, statements, parameters etc etc.
All metrics are
provided at the function, class, class category,
translation unit, or system level, as
appropriate.
|
| Other Details |
Cantata++ supports both host and
target testing with complete test portability
between host and target systems. Cantata++ is
available for most UNIX systems, Windows (95 and
NT) and selected target systems. Cantata++
supports all ISO C++ compilers. |
Cantata++ was developed
under the control of IPL's Quality Management System
which is accredited to ISO9000-3 (TickIT).
Last updated: 16/12/98 10:28
|