A metrics suite for JUnit test code: a multiple case study on open source software
Pp.1-32
Lưu vào:
Tác giả chính: | , , |
---|---|
Định dạng: | Working Paper |
Ngôn ngữ: | English |
Thông tin xuất bản: |
Spinger
2023
|
Chủ đề: | |
Truy cập trực tuyến: | https://thuvienso.hoasen.edu.vn/handle/123456789/14145 |
Từ khóa: |
Thêm từ khóa bạn đọc
Không có từ khóa, Hãy là người đầu tiên gắn từ khóa cho biểu ghi này!
|
id |
oai:https:--thuvienso.hoasen.edu.vn:123456789-14145 |
---|---|
record_format |
dspace |
spelling |
oai:https:--thuvienso.hoasen.edu.vn:123456789-141452023-11-09T02:59:30Z A metrics suite for JUnit test code: a multiple case study on open source software Toure, Fadel Badri, Mourad Lamontagne, Luc Software testing Unit testing Testing effort JUnit code Metrics Principal components analysis Clustering techniques Correlation analysis and linear regression analysis Pp.1-32 Background: The code of JUnit test cases is commonly used to characterize software testing effort. Different metrics have been proposed in literature to measure various perspectives of the size of JUnit test cases. Unfortunately, there is little understanding of the empirical application of these metrics, particularly which metrics are more useful in terms of provided information. Methods: This paper aims at proposing a unified metrics suite that can be used to quantify the unit testing effort. We addressed the unit testing effort from the perspective of unit test case construction, and particularly the effort involved in writing the code of JUnit test cases. We used in our study five unit test case metrics, two of which were introduced in a previous work. We conducted an empirical study in three main stages. We collected data from six open source Java software systems, of different sizes and from different domains, for which JUnit test cases exist. We performed in a first stage a Principal Component Analysis to find whether the analyzed unit test case metrics are independent or are measuring similar structural aspects of the code of JUnit test cases. We used in a second stage clustering techniques to determine the unit test case metrics that are the less volatile, i.e. the least affected by the style adopted by developers while writing the code of test cases. We used in a third stage correlation and linear regression analysis to evaluate the relationships between the internal software class attributes and the test case metrics. Results and Conclusions: The main goal of this study was to identify a subset of unit test case metrics: (1) providing useful information on the effort involved to write the code of JUnit test cases, (2) that are independent from each other, and (3) that are the less volatile. Results confirm the conclusions of our previous work and show, in addition, that: (1) the set of analyzed unit test case metrics could be reduced to a subset of two independent metrics maximizing the whole set of provided information, (2) these metrics are the less volatile, and (3) are also the most correlated to the internal software class attributes 2023-11-09T02:59:26Z 2023-11-09T02:59:26Z 2014 Working Paper 10.1186/s40411-014-0014-6 https://thuvienso.hoasen.edu.vn/handle/123456789/14145 en application/pdf Spinger |
institution |
Trường Đại học Hoa Sen |
collection |
DSpaceHS |
language |
English |
topic |
Software testing Unit testing Testing effort JUnit code Metrics Principal components analysis Clustering techniques Correlation analysis and linear regression analysis |
spellingShingle |
Software testing Unit testing Testing effort JUnit code Metrics Principal components analysis Clustering techniques Correlation analysis and linear regression analysis Toure, Fadel Badri, Mourad Lamontagne, Luc A metrics suite for JUnit test code: a multiple case study on open source software |
description |
Pp.1-32 |
format |
Working Paper |
author |
Toure, Fadel Badri, Mourad Lamontagne, Luc |
author_facet |
Toure, Fadel Badri, Mourad Lamontagne, Luc |
author_sort |
Toure, Fadel |
title |
A metrics suite for JUnit test code: a multiple case study on open source software |
title_short |
A metrics suite for JUnit test code: a multiple case study on open source software |
title_full |
A metrics suite for JUnit test code: a multiple case study on open source software |
title_fullStr |
A metrics suite for JUnit test code: a multiple case study on open source software |
title_full_unstemmed |
A metrics suite for JUnit test code: a multiple case study on open source software |
title_sort |
metrics suite for junit test code: a multiple case study on open source software |
publisher |
Spinger |
publishDate |
2023 |
url |
https://thuvienso.hoasen.edu.vn/handle/123456789/14145 |
work_keys_str_mv |
AT tourefadel ametricssuiteforjunittestcodeamultiplecasestudyonopensourcesoftware AT badrimourad ametricssuiteforjunittestcodeamultiplecasestudyonopensourcesoftware AT lamontagneluc ametricssuiteforjunittestcodeamultiplecasestudyonopensourcesoftware AT tourefadel metricssuiteforjunittestcodeamultiplecasestudyonopensourcesoftware AT badrimourad metricssuiteforjunittestcodeamultiplecasestudyonopensourcesoftware AT lamontagneluc metricssuiteforjunittestcodeamultiplecasestudyonopensourcesoftware |
_version_ |
1783233444261658624 |