EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Comparative analysis of Java unit and integration testing tools: JUnit, TestNG and Spock

Dawid Grabek, Jan Gryta, Mariusz Dzieńkowski

Informatyka, Automatyka, Pomiary w Gospodarce i Ochronie Środowiska · 30.06.2026 · 16 (2) · 145-151

DOI: 10.35784/iapgos.8302 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Informatyka, Automatyka, Pomiary w Gospodarce i Ochronie Środowiska, online erschienen am 30.06.2026. Verfasst von Dawid Grabek und 2 weiteren Autor:innen. Die Arbeit nennt 16 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

The purpose of the study is to compare popular Java testing tools: JUnit, TestNg and Spock. The evaluation was con-ducted based using four criteria: performance, popularity, ease of learning, and code readability. A quantitative analysis was performed based on an experiment with predefined research scenarios, which included assertion tests, database operations, and computational tasks. Execution times of the scenarios were measured in various configurations of single-threaded and multi-threaded tests. The comparative analysis showed that no single tool is universally optimal. Spock demonstrates superior performance in terms of code readability and clarity. TestNG, by contrast, offers high execution performance and requires relatively little effort to learn and use effectively. JUnit stands out particularly in its support for multithreaded data access. The results therefore challenge the widely held belief in the JUnit framework's universality.

Zitieren

APA

Grabek, D., Gryta, J., & Dzieńkowski, M. (2026). Comparative analysis of Java unit and integration testing tools: JUnit, TestNG and Spock. Informatyka, Automatyka, Pomiary w Gospodarce i Ochronie Środowiska, 16(2), 145-151. https://doi.org/10.35784/iapgos.8302

Vancouver

Grabek D, Gryta J, Dzieńkowski M. Comparative analysis of Java unit and integration testing tools: JUnit, TestNG and Spock. Informatyka, Automatyka, Pomiary w Gospodarce i Ochronie Środowiska. 2026;16(2):145-151. doi:10.35784/iapgos.8302

BibTeX
@article{Grabek2026,
  author = {Grabek, Dawid and Gryta, Jan and Dzieńkowski, Mariusz},
  title = {Comparative analysis of Java unit and integration testing tools: JUnit, TestNG and Spock},
  journal = {Informatyka, Automatyka, Pomiary w Gospodarce i Ochronie Środowiska},
  year = {2026},
  volume = {16},
  number = {2},
  pages = {145--151},
  doi = {10.35784/iapgos.8302}
}
Kostenlos starten →