An Empirical Investigation on the Readability of Manual and Generated Test Cases

Software testing is one of the most crucial tasks in the typical development process. Developers are usually required to write unit test cases for the code they implement. Since this is a time-consuming task, in last years many approaches and tools for automatic test case generation - such as EvoSui...

Celý popis

Uložené v:
Podrobná bibliografia
Vydané v:2018 IEEE/ACM 26th International Conference on Program Comprehension (ICPC) s. 348 - 3483
Hlavní autori: Grano, Giovanni, Scalabrino, Simone, Gall, Harald C., Oliveto, Rocco
Médium: Konferenčný príspevok..
Jazyk:English
Vydavateľské údaje: ACM 01.05.2018
Predmet:
ISSN:2643-7171
On-line prístup:Získať plný text
Tagy: Pridať tag
Žiadne tagy, Buďte prvý, kto otaguje tento záznam!
Abstract Software testing is one of the most crucial tasks in the typical development process. Developers are usually required to write unit test cases for the code they implement. Since this is a time-consuming task, in last years many approaches and tools for automatic test case generation - such as EvoSuite - have been introduced. Nevertheless, developers have to maintain and evolve tests to sustain the changes in the source code; therefore, having readable test cases is important to ease such a process. However, it is still not clear whether developers make an effort in writing readable unit tests. Therefore, in this paper, we conduct an explorative study comparing the readability of manually written test cases with the classes they test. Moreover, we deepen such analysis looking at the readability of automatically generated test cases. Our results suggest that developers tend to neglect the readability of test cases and that automatically generated test cases are generally even less readable than manually written ones.
AbstractList Software testing is one of the most crucial tasks in the typical development process. Developers are usually required to write unit test cases for the code they implement. Since this is a time-consuming task, in last years many approaches and tools for automatic test case generation - such as EvoSuite - have been introduced. Nevertheless, developers have to maintain and evolve tests to sustain the changes in the source code; therefore, having readable test cases is important to ease such a process. However, it is still not clear whether developers make an effort in writing readable unit tests. Therefore, in this paper, we conduct an explorative study comparing the readability of manually written test cases with the classes they test. Moreover, we deepen such analysis looking at the readability of automatically generated test cases. Our results suggest that developers tend to neglect the readability of test cases and that automatically generated test cases are generally even less readable than manually written ones.
Author Oliveto, Rocco
Grano, Giovanni
Gall, Harald C.
Scalabrino, Simone
Author_xml – sequence: 1
  givenname: Giovanni
  surname: Grano
  fullname: Grano, Giovanni
  organization: University of Zurich
– sequence: 2
  givenname: Simone
  surname: Scalabrino
  fullname: Scalabrino, Simone
  organization: University of Molise
– sequence: 3
  givenname: Harald C.
  surname: Gall
  fullname: Gall, Harald C.
  organization: University of Zurich
– sequence: 4
  givenname: Rocco
  surname: Oliveto
  fullname: Oliveto, Rocco
  organization: University of Molise
BookMark eNotjM1Kw0AYRUdRsK1du3AzL5A6_z_LEmotVBSp6_Il-UZH0klJRqFv36DChQOXc--UXKUuISF3nC04V_pBcm-k4ItfGnlBpmPLpLZcuUsyEUbJwnLLb8h8GL4YY1IwqaydkNdloqvDMfaxhpZu0g8OOX5Ajl2iY_In0jeEBqrYxnyiXaDPkL5HFVJD15iwh4wN3Y0zWsKAwy25DtAOOP_njLw_rnblU7F9WW_K5bYA4VwuhKkr5YMztgnaGuHqKqDwNTNgUHJTa4NeaqeccSy4yrhQ64A8eBBceZQzcv_3GxFxf-zjAfrT3nkrObPyDAn6T44
ContentType Conference Proceeding
DBID 6IE
6IL
CBEJK
RIE
RIL
DOI 10.1145/3196321.3196363
DatabaseName IEEE Electronic Library (IEL) Conference Proceedings
IEEE Proceedings Order Plan All Online (POP All Online) 1998-present by volume
IEEE Xplore All Conference Proceedings
IEEE Electronic Library (IEL)
IEEE Proceedings Order Plans (POP All) 1998-Present
DatabaseTitleList
Database_xml – sequence: 1
  dbid: RIE
  name: IEEE Electronic Library (IEL)
  url: https://ieeexplore.ieee.org/
  sourceTypes: Publisher
DeliveryMethod fulltext_linktorsrc
Discipline Computer Science
EISBN 1450357148
9781450357142
EISSN 2643-7171
EndPage 3483
ExternalDocumentID 8973107
Genre orig-research
GroupedDBID 6IE
6IF
6IL
6IN
AAJGR
AAWTH
ABLEC
ADZIZ
ALMA_UNASSIGNED_HOLDINGS
BEFXN
BFFAM
BGNUA
BKEBE
BPEOZ
CBEJK
CHZPO
IEGSK
OCL
RIE
RIL
ID FETCH-LOGICAL-a288t-26cb49f867df57628cbfe29c06a6e316c56e935848680f8b68fc5fe1f9a2149e3
IEDL.DBID RIE
ISICitedReferencesCount 43
ISICitedReferencesURI http://www.webofscience.com/api/gateway?GWVersion=2&SrcApp=Summon&SrcAuth=ProQuest&DestLinkType=CitingArticles&DestApp=WOS_CPL&KeyUT=000555427300040&url=https%3A%2F%2Fcvtisr.summon.serialssolutions.com%2F%23%21%2Fsearch%3Fho%3Df%26include.ft.matches%3Dt%26l%3Dnull%26q%3D
IngestDate Wed Aug 13 06:23:00 EDT 2025
IsDoiOpenAccess false
IsOpenAccess true
IsPeerReviewed false
IsScholarly true
Language English
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-a288t-26cb49f867df57628cbfe29c06a6e316c56e935848680f8b68fc5fe1f9a2149e3
OpenAccessLink https://www.zora.uzh.ch/id/eprint/150985/1/150985.pdf
PageCount 3136
ParticipantIDs ieee_primary_8973107
PublicationCentury 2000
PublicationDate 2018-May
PublicationDateYYYYMMDD 2018-05-01
PublicationDate_xml – month: 05
  year: 2018
  text: 2018-May
PublicationDecade 2010
PublicationTitle 2018 IEEE/ACM 26th International Conference on Program Comprehension (ICPC)
PublicationTitleAbbrev ICPC
PublicationYear 2018
Publisher ACM
Publisher_xml – name: ACM
SSID ssj0003203477
ssj0002869941
Score 2.3307319
Snippet Software testing is one of the most crucial tasks in the typical development process. Developers are usually required to write unit test cases for the code...
SourceID ieee
SourceType Publisher
StartPage 348
SubjectTerms automated testing
Codes
empirical software engineering
Manuals
readability
Software engineering
Software testing
Source coding
Writing
Title An Empirical Investigation on the Readability of Manual and Generated Test Cases
URI https://ieeexplore.ieee.org/document/8973107
WOSCitedRecordID wos000555427300040&url=https%3A%2F%2Fcvtisr.summon.serialssolutions.com%2F%23%21%2Fsearch%3Fho%3Df%26include.ft.matches%3Dt%26l%3Dnull%26q%3D
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
link http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwlZ07a8MwEMdFGjp0Stuk9I2GjnViPSKdxhISOrQhQwrZgqRIkKF2yKPQb19JdtIMXQoG2QKDkSzuTrr_7xB6IoYBJ7nJrDIRqs1kZoyHTAtPlA4eAXdJKPwmx2OYzdSkgZ4PWhjnXEo-c914m87yF6Xdxa2yHsQ6S1E6fiKlqLRah_0UCkLtNZnxmdGccSlrmg_h_V762SjppjZiP4_KqSRrMmr97zvOUedXlocnB4NzgRquuEStfV0GXC_TNpq8FHj4uVom-gc-ImmUBQ5XcPlwzJ2vCN3fuPT4XUcyKdbFAlcc6uCH4ml4DQ-Cldt00MdoOB28ZnXlhExTgG1GhTVceRBy4UNAQcEa76iyudDCMSJsX7h4AMpBQO7BCPAx64x4pWkImRy7Qs2iLNw1wiIsceo0SO8td8RpzSxnllkNxodY8ga14wDNVxUcY16Pze3f3XfoLHgcUGUM3qPmdr1zD-jUfm2Xm_VjmtEf9NygrA
linkProvider IEEE
linkToHtml http://cvtisr.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwlZ3Pa8IwFMeDuMF2cpuOuZ857Lhq88P09ThEcUzFgwNvksQEPKwVfwz23y9Jq_Owy6CQNlAoScN7L3nfz0PomSgGnMQq0qnyUG2WREpZiKSwJJXOI-AmCIWHyXgMs1k6qaCXgxbGGBOSz0zL34az_EWud36rrA2-zpKXjp90OKdxodY67KhQEOlelemfGY0ZT5KS50N4px1-N0paofXgz6OCKsGe9Gv_-5IL1PgV5uHJweRcoorJrlBtX5kBlwu1jiavGe59rpaB_4GPWBp5ht3lnD7ss-cLRvc3zi0eSc8mxTJb4IJE7TxRPHWv4a6zc5sG-uj3pt1BVNZOiCQF2EZUaMVTCyJZWBdSUNDKGprqWEhhGBG6I4w_AuUgILagBFifd0ZsKqkLmgy7RtUsz8wNwsItcmokJNZqboiRkmnONNMSlHXRZBPV_QDNVwUeY16Oze3f3U_obDAdDefDt_H7HTp3_gcU-YP3qLpd78wDOtVf2-Vm_Rhm9weA1aPz
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=proceeding&rft.title=2018+IEEE%2FACM+26th+International+Conference+on+Program+Comprehension+%28ICPC%29&rft.atitle=An+Empirical+Investigation+on+the+Readability+of+Manual+and+Generated+Test+Cases&rft.au=Grano%2C+Giovanni&rft.au=Scalabrino%2C+Simone&rft.au=Gall%2C+Harald+C.&rft.au=Oliveto%2C+Rocco&rft.date=2018-05-01&rft.pub=ACM&rft.eissn=2643-7171&rft.spage=348&rft.epage=3483&rft_id=info:doi/10.1145%2F3196321.3196363&rft.externalDocID=8973107