Login | Register

Studying Logging Practice in Test Code


Studying Logging Practice in Test Code

Zhang, Haonan (2021) Studying Logging Practice in Test Code. Masters thesis, Concordia University.

[thumbnail of Haonan_MA_F2021.pdf]
Text (application/pdf)
Haonan_MA_F2021.pdf - Accepted Version
Available under License Spectrum Terms of Access.


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, there is no research on 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 ∼8 million sources lines of code and ∼70 thousand 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.

Divisions:Concordia University > Gina Cody School of Engineering and Computer Science > Computer Science and Software Engineering
Item Type:Thesis (Masters)
Authors:Zhang, Haonan
Institution:Concordia University
Degree Name:M.A. Sc.
Program:Software Engineering
Date:21 August 2021
Thesis Supervisor(s):Shang, Weiyi
ID Code:988863
Deposited By: Haonan Zhang
Deposited On:29 Nov 2021 16:21
Last Modified:29 Nov 2021 16:21
All items in Spectrum are protected by copyright, with all rights reserved. The use of items is governed by Spectrum's terms of access.

Repository Staff Only: item control page

Downloads per month over past year

Research related to the current document (at the CORE website)
- Research related to the current document (at the CORE website)
Back to top Back to top