arrow
Return

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
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
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)
errShare
errSave
errShare
errSave
Towards just-in-time suggestions for log changes
err2016-10-24
err65
PREAI
errLi, Heng; Shang, Weiyi; Zou, Ying; Hassan, Ahmed E.
errShare
errSave
Studying software logging using topic models
err2018-01-30
err65
PREAI
errLi, Heng; Chen, Tse-Hsun (Peter); Shang, Weiyi; Hassan, Ahmed E.
errShare
errSave
Studying and detecting log-related issues
err2018-03-15
err38
errOAAI
errHassani, Mehran; Shang, Weiyi; Shihab, Emad; Tsantalis, Nikolaos
errShare
errSave

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
6.4K

Organization

C
concordia university - canada
Scholars:
8.0K
Papers: 8.9K
Citations: 1.1W
U
université de montréal
Scholars:
1.0K
Papers: 435
Citations: 2.3W
Cited Papers

Cited Papers

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
errShare
errSave
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
errShare
errSave
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
errShare
errSave
Advances in rehabilitation medicine
err2013-10-01
err0
errOAAI
errYS Ng; E Chew; GS Samuel; YL Tan; KH Kong
errShare
errSave
Time-Delay Margin Analysis for an Adaptive Controller
err2012-09-01
err0
PREAI
errAndrei Dorobantu; Peter Seiler; Gary J. Balas
errShare
errSave
Software microbenchmarking in the cloud. How bad is it really?
err2019-04-17
err43
errOAAI
errLaaber, Christoph; Scheuner, Joel; Leitner, Philipp
errShare
errSave
researcher View more