SlideShare a Scribd company logo
On the Distribution of "Simple Stupid Bugs"
in Unit Test Files: An Exploratory Study
Anthony Peruma and Christian D. Newman
The 18th International Conference on Mining Software Repositories
h t t p s : / / s c a n l . o r g
GOAL
IMPACT
RESEARCH
QUESTIONS
CONTRIBUTION
Explore the quality of test suites from a
functional and non-functional perspective
Provide developers and tool vendors with
insight to better maintain test suites
Extent of SStuBs occurring in (non-) test files
Co-occurrence of test smells and SStuB fixes
Dataset and discussion of test smells and
SStuBs in test files
ManySStuBs4J
Dataset
(Maven
Projects)
Clone
Repository &
Source File
Extraction
Test File
Detection
Test Smell
Detection
(tsDetect)
➢ Total volume of Java files with SStuBs: 5,587
➢ Distribution of SStuBs in file types:
19% test & 81% non-test
➢ Test files: Specific relationships between code
and the bug fix:
assertion statements
time-related identifiers
mocking identifiers
➢ Test smells occur in most SStuBs fix test files
➢ Frequently occurring test smell types:
Assertion Roulette
Exception Handling
➢ Change Numeric Literal SStuBs frequently occur
in smelly test files
➢ Test smells are rarely fixed when fixing SStuBs
Potential Code Quality Tools:
• Automatic identification of issues in test files based on
SStuB fixes to non-test files
• Highlight areas of concern based on relationships
between SStuBs and code behavior
• The quality of test code is as important as the quality of
production code
• Opens the door for potential future work
Do developers proactively address issues in test files?
Conclusion & Takeaways

More Related Content

PPT
Test Strategies & Common Mistakes
PPT
Testing Heuristic Detections
PPT
The VTC experience
PPTX
Rare Variant Analysis Workflows: Analyzing NGS Data in Large Cohorts
PPTX
Reproducibility: 10 Simple Rules
PDF
Exploring Exploratory Testing
PPTX
Aug2014 giab intro slides
PPTX
Making Use of NGS Data: From Reads to Trees and Annotations
Test Strategies & Common Mistakes
Testing Heuristic Detections
The VTC experience
Rare Variant Analysis Workflows: Analyzing NGS Data in Large Cohorts
Reproducibility: 10 Simple Rules
Exploring Exploratory Testing
Aug2014 giab intro slides
Making Use of NGS Data: From Reads to Trees and Annotations

Similar to On the Distribution of "Simple Stupid Bugs" in Unit Test Files: An Exploratory Study (20)

PPTX
Computational Resources In Infectious Disease
PPTX
150219 agbt giab_poster_marc
PDF
On the Distribution of Test Smells in Open Source Android Applications: An Ex...
ODP
2011 03-provenance-workshop-edingurgh
PPTX
Giab jan2016 intro and update 160128
PPTX
2014 agbt giab_progress update
PDF
Common testing pitfalls tsp-2014 - 2014-11-03 v10
PDF
Build your own gene panels 2013
PDF
Web Apollo Workshop University of Exeter
PPTX
How to be a bioinformatician
PPTX
Peccia qiime vamps_workshop
PPT
Collaborative Data Analysis with Taverna Workflows
PPTX
Web Apollo Tutorial for the i5K copepod research community.
PDF
2015_CV_J_SHELTON_linked
PDF
From peer-reviewed to peer-reproduced: a role for research objects in scholar...
PPTX
Google, quality and you
PPT
Make good use of explortary testing
PDF
Seminario en CIFASIS, Rosario, Argentina - Seminar in CIFASIS, Rosario, Argen...
PDF
Ngs part i 2013
PDF
PhD Symposium 2014
Computational Resources In Infectious Disease
150219 agbt giab_poster_marc
On the Distribution of Test Smells in Open Source Android Applications: An Ex...
2011 03-provenance-workshop-edingurgh
Giab jan2016 intro and update 160128
2014 agbt giab_progress update
Common testing pitfalls tsp-2014 - 2014-11-03 v10
Build your own gene panels 2013
Web Apollo Workshop University of Exeter
How to be a bioinformatician
Peccia qiime vamps_workshop
Collaborative Data Analysis with Taverna Workflows
Web Apollo Tutorial for the i5K copepod research community.
2015_CV_J_SHELTON_linked
From peer-reviewed to peer-reproduced: a role for research objects in scholar...
Google, quality and you
Make good use of explortary testing
Seminario en CIFASIS, Rosario, Argentina - Seminar in CIFASIS, Rosario, Argen...
Ngs part i 2013
PhD Symposium 2014
Ad

More from University of Hawai‘i at Mānoa (20)

PDF
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
PDF
Exploring Accessibility Trends and Challenges in Mobile App Development: A St...
PDF
The Impact of Generative AI-Powered Code Generation Tools on Software Enginee...
PDF
Mobile App Security Trends and Topics: An Examination of Questions From Stack...
PDF
On the Rationale and Use of Assertion Messages in Test Code: Insights from So...
PDF
A Developer-Centric Study Exploring Mobile Application Security Practices and...
PDF
Building Hawaii’s IT Future Together CIO Council & UH Manoa ICS Collaboration
PDF
Impostor Syndrome in Final Year Computer Science Students: An Eye Tracking an...
PDF
An Exploratory Study on the Occurrence of Self-Admitted Technical Debt in And...
PDF
Performance Comparison of Binary Machine Learning Classifiers in Identifying ...
PDF
Rename Chains: An Exploratory Study on the Occurrence and Characteristics of ...
PDF
A Primer on High-Quality Identifier Naming [ASE 2022]
PDF
Supporting the Maintenance of Identifier Names: A Holistic Approach to High-Q...
PDF
Preparing for the Academic Job Market: Experience and Tips from a Recent F...
PDF
Refactoring Debt: Myth or Reality? An Exploratory Study on the Relationship B...
PDF
A Primer on High-Quality Identifier Naming
PDF
Test Anti-Patterns: From Definition to Detection
PDF
Refactoring Debt: Myth or Reality? An Exploratory Study on the Relationship B...
PDF
Understanding Digits in Identifier Names: An Exploratory Study
PDF
How Do I Refactor This? An Empirical Study on Refactoring Trends and Topics i...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Accessibility Trends and Challenges in Mobile App Development: A St...
The Impact of Generative AI-Powered Code Generation Tools on Software Enginee...
Mobile App Security Trends and Topics: An Examination of Questions From Stack...
On the Rationale and Use of Assertion Messages in Test Code: Insights from So...
A Developer-Centric Study Exploring Mobile Application Security Practices and...
Building Hawaii’s IT Future Together CIO Council & UH Manoa ICS Collaboration
Impostor Syndrome in Final Year Computer Science Students: An Eye Tracking an...
An Exploratory Study on the Occurrence of Self-Admitted Technical Debt in And...
Performance Comparison of Binary Machine Learning Classifiers in Identifying ...
Rename Chains: An Exploratory Study on the Occurrence and Characteristics of ...
A Primer on High-Quality Identifier Naming [ASE 2022]
Supporting the Maintenance of Identifier Names: A Holistic Approach to High-Q...
Preparing for the Academic Job Market: Experience and Tips from a Recent F...
Refactoring Debt: Myth or Reality? An Exploratory Study on the Relationship B...
A Primer on High-Quality Identifier Naming
Test Anti-Patterns: From Definition to Detection
Refactoring Debt: Myth or Reality? An Exploratory Study on the Relationship B...
Understanding Digits in Identifier Names: An Exploratory Study
How Do I Refactor This? An Empirical Study on Refactoring Trends and Topics i...
Ad

Recently uploaded (20)

PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
System and Network Administraation Chapter 3
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
top salesforce developer skills in 2025.pdf
PDF
System and Network Administration Chapter 2
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Digital Strategies for Manufacturing Companies
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Introduction to Artificial Intelligence
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
System and Network Administraation Chapter 3
Wondershare Filmora 15 Crack With Activation Key [2025
VVF-Customer-Presentation2025-Ver1.9.pptx
top salesforce developer skills in 2025.pdf
System and Network Administration Chapter 2
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Adobe Illustrator 28.6 Crack My Vision of Vector Design
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Digital Strategies for Manufacturing Companies
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Design an Analysis of Algorithms II-SECS-1021-03
Introduction to Artificial Intelligence
CHAPTER 2 - PM Management and IT Context
PTS Company Brochure 2025 (1).pdf.......
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...

On the Distribution of "Simple Stupid Bugs" in Unit Test Files: An Exploratory Study

  • 1. On the Distribution of "Simple Stupid Bugs" in Unit Test Files: An Exploratory Study Anthony Peruma and Christian D. Newman The 18th International Conference on Mining Software Repositories h t t p s : / / s c a n l . o r g
  • 2. GOAL IMPACT RESEARCH QUESTIONS CONTRIBUTION Explore the quality of test suites from a functional and non-functional perspective Provide developers and tool vendors with insight to better maintain test suites Extent of SStuBs occurring in (non-) test files Co-occurrence of test smells and SStuB fixes Dataset and discussion of test smells and SStuBs in test files
  • 3. ManySStuBs4J Dataset (Maven Projects) Clone Repository & Source File Extraction Test File Detection Test Smell Detection (tsDetect) ➢ Total volume of Java files with SStuBs: 5,587 ➢ Distribution of SStuBs in file types: 19% test & 81% non-test ➢ Test files: Specific relationships between code and the bug fix: assertion statements time-related identifiers mocking identifiers ➢ Test smells occur in most SStuBs fix test files ➢ Frequently occurring test smell types: Assertion Roulette Exception Handling ➢ Change Numeric Literal SStuBs frequently occur in smelly test files ➢ Test smells are rarely fixed when fixing SStuBs
  • 4. Potential Code Quality Tools: • Automatic identification of issues in test files based on SStuB fixes to non-test files • Highlight areas of concern based on relationships between SStuBs and code behavior • The quality of test code is as important as the quality of production code • Opens the door for potential future work Do developers proactively address issues in test files? Conclusion & Takeaways