Video/Audio Open Access

# A Large Scale Study On the Effectiveness of Manual and Automatic Unit Test Generation

### DataCite XML Export

<?xml version='1.0' encoding='utf-8'?>
<identifier identifierType="URL">https://zenodo.org/record/4081573</identifier>
<creators>
<creator>
<creatorName>Beatriz Souza</creatorName>
<affiliation>Federal University of Campina Grande</affiliation>
</creator>
<creator>
<affiliation>Federal University of Campina Grande</affiliation>
</creator>
</creators>
<titles>
<title>A Large Scale Study On the Effectiveness of Manual and Automatic Unit Test Generation</title>
</titles>
<publisher>Zenodo</publisher>
<publicationYear>2020</publicationYear>
<subjects>
<subject>automatic test generation</subject>
<subject>, empirical studies</subject>
<subject>mutation testing</subject>
</subjects>
<dates>
<date dateType="Issued">2020-10-12</date>
</dates>
<language>en</language>
<resourceType resourceTypeGeneral="Audiovisual"/>
<alternateIdentifiers>
<alternateIdentifier alternateIdentifierType="url">https://zenodo.org/record/4081573</alternateIdentifier>
</alternateIdentifiers>
<relatedIdentifiers>
<relatedIdentifier relatedIdentifierType="DOI" relationType="IsIdenticalTo">10.1145/3422392.3422407</relatedIdentifier>
<relatedIdentifier relatedIdentifierType="URL" relationType="IsPartOf">https://zenodo.org/communities/cbsoft2020</relatedIdentifier>
</relatedIdentifiers>
<rightsList>
<rights rightsURI="info:eu-repo/semantics/openAccess">Open Access</rights>
</rightsList>
<descriptions>
<description descriptionType="Abstract">&lt;p&gt;Recently, an increasingly large amount of effort has been devoted to implementing tools to generate unit test suites automatically. Previous studies have investigated the effectiveness of these tools by comparing automatically generated test suites (ATSs) to manually written test suites (MTSs). Most of these studies report that ATSs can achieve higher code coverage, or even mutation coverage, than MTSs, particularly when suites are generated from defective code. However, these studies usually consider a limited amount of classes or subject programs, while the adoption of such tools in the industry is still low. This work aims to compare the effectiveness of ATSs and MTSs when applied as regression test suites. We conduct an empirical study, using ten programs (1368 classes), written in Java, that already have MTSs and apply two sophisticated tools that automatically generate test cases: Randoop and EvoSuite. To evaluate the test suites&amp;rsquo; effectiveness, we use line and mutation coverage. Our results indicate that MTSs are, in general, more effective than ATSs regarding the investigated metrics. Moreover, the number of generated test cases may not indicate test suites&amp;rsquo; effectiveness. Furthermore, there are situations when ATSs are more effective, and even when ATSs and MTSs can be complementary.&lt;/p&gt;</description>
</descriptions>
</resource>

100
51
views