Paper published in a book (Scientific congresses, symposiums and conference proceedings)
Generating TCP/UDP Network Data for Automated Unit Test Generation
ARCURI, Andrea; Fraser, Gordon; Galeotti, Juan Pablo
2015In 10th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering (ESEC/FSE)
Peer reviewed
 

Files


Full Text
paper_vnet_CR.pdf
Publisher postprint (216.89 kB)
Request a copy

All documents in ORBilu are protected by a user license.

Send to



Details



Abstract :
[en] Although automated unit test generation techniques can in principle generate test suites that achieve high code coverage, in practice this is often inhibited by the dependence of the code under test on external resources. In particular, a common problem in modern programming languages is posed by code that involves networking (e.g., opening a TCP listening port). In order to generate tests for such code, we describe an approach where we mock (simulate) the networking interfaces of the Java standard library, such that a search-based test generator can treat the network as part of the test input space. This not only has the benefit that it overcomes many limitations of testing networking code (e.g., different tests binding to the same local ports, and deterministic resolution of hostnames and ephemeral ports), it also substantially increases code coverage. An evaluation on 23,886 classes from 110 open source projects, totalling more than 6.6 million lines of Java code, reveals that network access happens in 2,642 classes (11%). Our implementation of the proposed technique as part of the EVOSUITE testing tool addresses the networking code contained in 1,672 (63%) of these classes, and leads to an increase of the average line coverage from 29.1% to 50.8%. On a manual selection of 42 Java classes heavily depending on networking, line coverage with EVOSUITE more than doubled with the use of network mocking, increasing from 31.8% to 76.6%.
Research center :
ULHPC - University of Luxembourg: High Performance Computing
Disciplines :
Computer science
Author, co-author :
ARCURI, Andrea;  University of Luxembourg > Interdisciplinary Centre for Security, Reliability and Trust (SNT)
Fraser, Gordon
Galeotti, Juan Pablo
External co-authors :
yes
Language :
English
Title :
Generating TCP/UDP Network Data for Automated Unit Test Generation
Publication date :
2015
Event name :
10th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering (ESEC/FSE)
Event date :
August 30 – September 4
Main work title :
10th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering (ESEC/FSE)
Publisher :
ACM
Peer reviewed :
Peer reviewed
Available on ORBilu :
since 03 July 2015

Statistics


Number of views
99 (5 by Unilu)
Number of downloads
2 (2 by Unilu)

Scopus citations®
 
19
Scopus citations®
without self-citations
12
OpenCitations
 
14
OpenAlex citations
 
19

Bibliography


Similar publications



Contact ORBilu