The quality of junit tests: An empirical study report

Dor D. Ma'ayan*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

The quality of unit tests gains substantial importance in modern software systems. This work explores the way in which Junit tests are written in real world Java systems. We analyse 112 Java repositories and measure the quality of unit tests by finding patterns which indicate good practices of coding. Our results show that the quality of real world unit tests is low, and that in many cases, unit tests don't follow the well-known recommendations for writing unit tests. These early results demonstrate the need for more tools and techniques for refactoring of tests.

Original languageEnglish
Title of host publicationProceedings - 2018 ACM/IEEE 1st International Workshop on Software Qualities and Their Dependencies, SQUADE 2018
PublisherIEEE Computer Society
Pages33-36
Number of pages4
ISBN (Print)9781450357371
DOIs
StatePublished - 28 May 2018
Externally publishedYes
EventACM/IEEE 1st International Workshop on Software Qualities and Their Dependencies, SQUADE 2018, co-located with International Conference on Software Engineering, ICSE 2018 - Gothenburg, Sweden
Duration: 28 May 2018 → …

Publication series

NameProceedings - International Conference on Software Engineering
ISSN (Print)0270-5257

Conference

ConferenceACM/IEEE 1st International Workshop on Software Qualities and Their Dependencies, SQUADE 2018, co-located with International Conference on Software Engineering, ICSE 2018
Country/TerritorySweden
CityGothenburg
Period28/05/18 → …

Keywords

  • Algebraic Representation
  • Software Engineering
  • Software Metrics
  • Taxonomy
  • Testing

Cite this