testflakinessdetector

In this project we aim to identify flaky tests using code smells.

https://github.com/sagarswap/testflakinessdetector

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

In this project we aim to identify flaky tests using code smells.

Basic Info
  • Host: GitHub
  • Owner: sagarswap
  • License: cc-by-sa-4.0
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 1.94 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Created over 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme License Citation

README.md

On the use of test smells for prediction of flaky tests

CC BY-SA 4.0 DOI arXiv

Bruno Henrique Pachulski Camara 1, 2,
Marco Aure ́lio Graciotto Silva 3,
Andre T. Endo 4,
Silvia Regina Vergilio 2.

1 Centro Universitário Integrado, Campo Mourão, PR, Brazil
2 Department of Computer Science, Federal University of Parana ́, Curitiba, PR, Brazil
      bhpachulski@ufpr.br, silvia@inf.ufpr.br
3 Department of Computing, Federal University of Technology - Parana ́, Campo Mourão, PR, Brazil
      magsilva@utfpr.edu.br
4 Department of Computing, Federal University of Technology - Parana ́, Cornélio Procópio, PR, Brazil
      andreendo@utfpr.edu.br

This paper has been submitted for publication in SAST 2021 - VI Simpósio Brasileiro de Teste de Software Sistemático e Automatizado.

This experimental package is organized by aproaches, semlls and vocabulary-based. For each of the questions, some files can be executed to obtain the data that are presented in the paper.

Abstract

Regression testing is an important phase to deliver software with quality. However, flaky tests hamper the evaluation of test results and can increase costs. This is because a flaky test may pass or fail non-deterministically and to identify properly the flakiness of a test requires rerunning the test suite multiple times. To cope with this challenge, approaches have been proposed based on prediction models and machine learning. Existing approaches based on the use of the test case vocabulary may be context-sensitive and prone to overfitting, presenting low performance when executed in a cross-project scenario. To overcome these limitations, we investigate the use of test smells as predictors of flaky tests. We conducted an empirical study to understand if test smells have good performance as a classifier to predict the flakiness in the cross-project context, and analysed the information gain of each test smell. We also compared the test smell-based approach with the vocabulary-based one. As a result, we obtained a classifier that had a reasonable performance (Random Forest, 0.83\%) to predict the flakiness in the testing phase. This classifier presented better performance than vocabulary-based model for cross-project prediction. The "Assertion Roulette" and "Sleepy Test" test smell types are the ones associated with the best information gain values.

Keywords: test flakiness, regression testing, replication studies, machine learning

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0

Owner

  • Name: Swapnil Sagar
  • Login: sagarswap
  • Kind: user
  • Location: Rochester, NY

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this replication package, please cite it as below."
authors:
  - family-names: Pachulski Camara
    given-names: Bruno Henrique
    orcid: https://orcid.org/0000-0003-4862-5010
  - family-names: Graciotto Silva
    given-names: Marco Aurélio
    orcid: https://orcid.org/0000-0002-1737-8240
  - family-names: Endo
    given-names: André T.
    orcid: https://orcid.org/0000-0002-8737-1749
  - family-names: Vergilio
    given-names: Silvia Regina
    orcid: https://orcid.org/0000-0003-3139-6266
title: "On the use of test smells for prediction of flaky tests - Replication Package"
version: 2.0.4
doi: 10.5281/zenodo.5219768
date-released: 2021-08-19

GitHub Events

Total
Last Year