Logo des Repositoriums
 

An Empirical Study of Flaky Tests in Python

dc.contributor.authorGruber, Martin
dc.contributor.authorLukasczyk, Stephan
dc.contributor.authorKroiß, Florian
dc.contributor.authorFraser, Gordon
dc.contributor.editorGrunske, Lars
dc.contributor.editorSiegmund, Janet
dc.contributor.editorVogelsang, Andreas
dc.date.accessioned2022-01-19T12:56:58Z
dc.date.available2022-01-19T12:56:58Z
dc.date.issued2022
dc.description.abstractThis is a summary of our work presented at the International Conference on Software Testing 2021 [Gr21b]. Tests that cause spurious failures without code changes, i.e., flaky tests, hamper regression testing and decrease trust in tests. While the prevalence and importance of flakiness is well established, prior research focused on Java projects, raising questions about generalizability. To provide a better understanding of flakiness, we empirically study the prevalence, causes, and degree of flakiness within 22 352 Python projects containing 876 186 tests. We found flakiness to be equally prevalent in Python as in Java. The reasons, however, are different: Order dependency is a dominant problem, causing 59% of the 7 571 flaky tests we found. Another 28% were caused by test infrastructure problems, a previously less considered cause of flakiness. The remaining 13% can mostly be attributed to the use of network and randomness APIs. Unveiling flaky tests also requires more runs than often assumed: A 95% confidence that a passing test is not flaky on average would require 170 reruns. Additionally, through our investigations, we created a large dataset of flaky tests that other researchers already started building on [MM21; Ni21].en
dc.identifier.doi10.18420/se2022-ws-009
dc.identifier.isbn978-3-88579-714-2
dc.identifier.pissn1617-5468
dc.identifier.urihttps://dl.gi.de/handle/20.500.12116/37998
dc.language.isoen
dc.publisherGesellschaft für Informatik e.V.
dc.relation.ispartofSoftware Engineering 2022
dc.relation.ispartofseriesLecture Notes in Informatics (LNI) - Proceedings, Volume P-320
dc.subjectFlaky Test
dc.subjectPython
dc.subjectEmpirical Study
dc.titleAn Empirical Study of Flaky Tests in Pythonen
dc.typeText/Conference Paper
gi.citation.endPage38
gi.citation.publisherPlaceBonn
gi.citation.startPage37
gi.conference.date21.-25. Feburar 2022
gi.conference.locationBerlin/Virtuell
gi.conference.sessiontitleWissenschaftliches Hauptprogramm

Dateien

Originalbündel
1 - 1 von 1
Lade...
Vorschaubild
Name:
A1-9.pdf
Größe:
208.03 KB
Format:
Adobe Portable Document Format