Code Coverage Aid

Graduate Thesis uoadl:1324501 380 Read counter

Unit:
Τομέας Θεωρητικής Πληροφορικής
Library of the School of Science
Deposit date:
2016-08-23
Year:
2016
Author:
Τριαντάφυλλος Ορέστης
Supervisors info:
Ιωάννης Χαμόδρακας, Παναγιώτης Σταματόπουλος
Original Title:
Code Coverage Aid
Languages:
English
Summary:
In this thesis we address the issue of code coverage, one of the most important
issues
of software testing, which describes the degree to which the source code of a
program
is tested. We compile a review on the most common techniques to perform code
coverage analysis and we compare their pros and cons. Following a survey of
several
tools available for measuring the code coverage, and their characteristics, we
present
the design of the Code Coverage Aid tool (CCA) for C++ programs, developed by
the
author, to assist software developers and testers in the measuring of the
amount of
code coverage. Code Coverage Aid uses the most powerful technique, source
Instrumentation, to instrument the source code upon compilation by placing a
function
call on every branch decision and allows to keep track of the lines of code
that were
executed during each run. CCA provides two sets of results; the statistics of
the latest
run, as well as cumulative statistics of all tests performed on the program so
far. The
user can review the code coverage results through a graphical interface and
easily spot
the areas (functions or code blocks) that were not executed. Based on this
information,
the user can decide to design additional tests to cover the code blocks
indicated by
CCA as ill-tested.
Written in portable C++, and licensed under GNU EULA, CCA may be easily become a
routine task of any C++ development team, without additional cost or development
effort.
Keywords:
code coverage, software testing, source instrumentaion
Index:
Yes
Number of index pages:
8-12
Contains images:
Yes
Number of references:
40
Number of pages:
58
document.pdf (1 MB) Open in new window

 


attachments.zip
1 MB
File access is restricted.