Does Treatment Adherence Impact Experiment Results in TDD?

Itir Karac, Jose Ignacio Panach, Burak Turhan, Natalia Juristo

Research output: Contribution to journalArticleResearchpeer-review

Abstract

Context:In software engineering (SE) experiments, the way in which a treatment is applied could affect results. Different interpretations of how to apply the treatment and decisions on treatment adherence could lead to different results when data are analysed. Objective: This paper aims to study whether treatment adherence has an impact on the results of an SE experiment. Method: The experiment used as test case for our research uses Test-Driven Development (TDD) and Incremental Test-Last Development, (ITLD) as treatments. We reported elsewhere the design and results of such an experiment where 24 participants were recruited from industry. Here, we compare experiment results depending on the use of data from adherent participants or data from all the participants irrespective of their adherence to treatments. Results: Only 40% of the participants adhere to both TDD protocol and to the ITLD protocol; 27% never followed TDD; 20% used TDD even in the control group; 13% are defiers (used TDD in ITLD session but not in TDD session). Considering that both TDD and ITLD are less complex than other SE methods, we can hypothesize that more complex SE techniques could get even lower adherence to the treatment. Conclusion: Both TDD and ITLD are applied differently across participants. Training participants could not be enough to ensure a medium to large adherence of experiment participants. Adherence to treatments impacts results and should not be taken for granted in SE experiments.

Original languageEnglish
Pages (from-to)135-152
Number of pages18
JournalIEEE Transactions on Software Engineering
Volume51
Issue number1
DOIs
Publication statusPublished - Jan 2025

Keywords

  • Empirical Software Engineering
  • Test Driven Development
  • Treatment Adherence

Cite this