arrow
返回

Studying logging practice in test code

delete2022-04-07
delete5
PRE
AI
H
Haonan Zhang
Y
Yiming Tang *
M
Maxime Lamothe
H
Heng Li
W
Weiyi Shang
DOI:10.1007/s10664-022-10139-0delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Logging is widely used in modern software development to record run-time information for software systems and plays a significant role in software testing. Although the research area of logging has attracted much attention, little attention is paid to the practice of test logging (i.e., the logging involved in test files). To fill this knowledge gap, we conduct this empirical study to explore and disclose the practice of test logging. This study examines 21 open-source subjects with similar to 70K logging statements, of which similar to 48K are production logging statements and similar to 22K are test logging statements. We organize our study by answering four research questions, and as a result, (1) we have yielded five findings to reveal the differences between test and production logging statements, (2) we have disclosed four findings regarding the differences between the maintenance efforts of test and production logging statements, (3) we have identified four reasons why developers use test log, and (4) we have uncovered the relationship between test logging and production logging. To the best of our knowledge, this is the first study that quantitatively and qualitatively analyzes the logging practices in test and production code, providing developers and researchers with insight into this topic.
Keyword:
Software logs
Logging practices
Software testing
Mining software repository
Source code analysis
Studying the characteristics of logging practices in mobile apps: a case study on F-Droid
err2019-02-07
err38
PREAI
errZeng, Yi; Chen, Jinfu; Shang, Weiyi; Chen, Tse-Hsun (Peter)
err分享
err收藏
err分享
err收藏
Towards just-in-time suggestions for log changes
err2016-10-24
err65
PREAI
errLi, Heng; Shang, Weiyi; Zou, Ying; Hassan, Ahmed E.
err分享
err收藏
Studying software logging using topic models
err2018-01-30
err65
PREAI
errLi, Heng; Chen, Tse-Hsun (Peter); Shang, Weiyi; Hassan, Ahmed E.
err分享
err收藏
Studying and detecting log-related issues研究和检测日志相关问题
err2018-03-15
err38
errOAAI
errHassani, Mehran; Shang, Weiyi; Shihab, Emad; Tsantalis, Nikolaos
err分享
err收藏

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
6.4K

机构

C
concordia university - canada
学者数:
8.0K
论文数: 8.9K
被引数: 1.1W
U
université de montréal
学者数:
1.0K
论文数: 435
被引数: 2.3W
引用论文

引用论文

Coherent-Radiation Spectroscopy of Few-Femtosecond Electron Bunches Using a Middle-Infrared Prism Spectrometer
err2013-10-28
err0
errOAAI
errT. J. Maxwell; C. Behrens; Y. Ding; A. S. Fisher; J. Frisch; Z. Huang; H. Loos
err分享
err收藏
Inhibitory effect of interleukin‐16 on interleukin‐2 production by CD4+ T cells
err2001-12-25
err0
errOAAI
errOGASAWARA; TAKEDA‐HIROKAWA; SEKIGAWA; HASHIMOTO; KANEKO; HIROSE
err分享
err收藏
The Coordination and Luminescence of the Eu(III) Complexes with the Polymers (PMMA, PVP)
err2018-05-07
err0
errOAAI
errWeican Zhao; Haifeng Shao; Guang Yu; Yanjun Hou; Shuhong Wang
err分享
err收藏
Advances in rehabilitation medicine
err2013-10-01
err0
errOAAI
errYS Ng; E Chew; GS Samuel; YL Tan; KH Kong
err分享
err收藏
Time-Delay Margin Analysis for an Adaptive Controller
err2012-09-01
err0
PREAI
errAndrei Dorobantu; Peter Seiler; Gary J. Balas
err分享
err收藏
Software microbenchmarking in the cloud. How bad is it really?
err2019-04-17
err43
errOAAI
errLaaber, Christoph; Scheuner, Joel; Leitner, Philipp
err分享
err收藏
学者 查看更多内容