Comparative analysis of Java unit and integration testing tools: JUnit, TestNG and Spock
Article Sidebar
Issue Vol. 16 No. 2 (2026)
-
Performance evaluation of optimized deep learning model with Multilayered Max-Norm Regularization (MMNR) technique for brain tumour classification in MRI multi-modal images
Mulackal Chandran Binish, Vinu Thomas5-14
-
Stroke detection from brain CT-images and its volume visualization
Rithu James, Appukuttan Harsha, Liza Annie Joseph15-21
-
Adaptive filtering for noise reduction in photoplethysmography signals
Hicham Loumissi, Adil Barra, Najat Messaoudi, Othmane El Badlaoui, Bahloul Bensassi, Hicham Medromi22-25
-
Evaluation of informational diagnostic criteria and severity biomarkers using a discrimination model in patients with COVID-19
Gryhoriy Gradil, Oleg Avrunin, Kateryna Yurko, Natalia Shushlyapina, Yuliia Kalashnyk-Vakulenko, Mariia Shostatska, Aigul Iskakova26-31
-
Signal amplifiers in optical communication systems
Nurzhigit Smailov, Nurlybek Turar, Akezhan Sabibolda32-36
-
Analysis of underwater communication systems based on hybrid Li-Fi technology
Nurzhigit Smailov, Aizhan Urazgaliyeva, Akezhan Sabibolda37-43
-
Applying Box-Behnken design to research voice control automatic lighting systems
Oleksandr Burban, Mykola Polishchuk, Anatolii Tkachuk, Serhii Kostiuchko, Liliia Polishchuk, Valentyna Tkachuk44-49
-
Paddy fields detection on Sentinel-2 satellite images using EfficientDet model
Suvarna Vani Koneru, Kamal Epuri, Bhuvanesh Kakumanu, Ram Dinesh Aduri50-55
-
Models for assessing accuracy and reliability of fibre-optic gyroscope-based navigation systems
Maral Abulkhanova, Nurzhigit Smailov, Yerlan Tashtay, Gulbakhar Yussupova, Anar Khabay, Beibarys Sekenov, Akezhan Sabibolda56-60
-
Aggregation of multimodal log and metric streams for neuro-fuzzy anomaly detection in computer systems
Andrii Mishchenko, Oleksii Shushura, Alona Kolomiiets, Andrii Donets, Olena Kosaruk61-67
-
Static forensic analysis of file carving on SSDs uses NIST and ACPO method
Khoirul Anam Dahlan, Anton Yudhana, Herman Yuliansyah68-75
-
Fuzzy logic-based security risk assessment in wireless sensor networks of Industrial IoT
Olena Semenova, Natalia Kryvinska, Olha Voitsekhovska, Andrii Dzhus, Volodymyr Martyniuk76-83
-
Multicriteria optimisation of information protection system configuration based on the NSGA-II algorithm
Valeryi Lakhno, Myroslav Lakhno, Alona Desiatko, Bohdan Bebeshko84-90
-
Method of structural-block coding of tuple transformant video images
Volodymyr Barannik, Dmytro Uzlov, Yevhenii Yelisieiev, Valeriy Barannik, Nina Petrukha, Mykhailo Babenko, Dmitry Barannik, Vladyslav Kostromytskyi, Oleh Kompaniiets, Artem Bychenko91-101
-
Analysis of the increase in model forecasting accuracy after data normalization
Vladyslav Pylypenko, Vladyslava Skidan, Antonina Volivach102-106
-
Optimizing parameters for 4D hyperchaotic system using Walrus Optimizer Algorithm
Karam Adel Abed, Omar Saber Qasim, Saad Fawzi Al-Azzawi107-112
-
Iron coagulation optimization during water treatment using artificial intelligence tools
Andrii Safonyk, Ivan Tarhonii, Oleksandr Naumchuk, Vladyslav Danchenkov, Roman Zaichuk113-117
-
Optimisation of the generating capacity of droop-based DGs integrated into an isolated AC microgrid using metaheuristic algorithms to minimise power losses
Tuan-Ho Le, Tham X. Nguyen, Robert Lis, Muhammad Jamshed Abbass118-125
-
Chemical composition, structural and electrical properties of CdZnTeSe thick polycrystalline films
Yaroslav Znamenshchykov, Oleksii Lisovenko, Mykola Khvyshchun, Anatoliy Opanasyuk126-130
-
Substantiation of a new method for separation of bulk materials on a vibro-friction separator
Mykola Bakum, Serhii Kharchenko, Anatolii Mykhailov, Mykola Krekot, Taras Shchur, Oleg Dzhidzhora131-138
-
Software-based performance evaluation and forecasting of web applications using machine learning models
Liubov Oleshchenko139-144
-
Comparative analysis of Java unit and integration testing tools: JUnit, TestNG and Spock
Dawid Grabek, Jan Gryta, Mariusz Dzieńkowski145-151
-
Application of UML in the development process of computer games
Lyudmila Samchuk, Yuliia Povstiana, Yaroslav Tymoshchuk152-155
-
Design of digital cooking assistant system with modern voice generative AI model
Robert Banasiak, Zdzisława Rowińska, Wojciech Szczucki, Dawid Jantosz, Łukasz Rembowski156-161
-
Deep learning architectures for multiclass clothing recognition as the semantic core of automated virtual try-on systems
Roman Chekhmestruk, Olena Voitsekhovska, Svitlana Kyrylashchuk162-172
-
Knowledge model "Tags about batches and containers" of the ERP system "PlasmIS" with the possibility of self-improvement using local llm models
Oleh Bisikalo, Valerii Starzhynskyi, Tetiana Molodetska, Nelia Burlaka173-178
-
Paradigms of information technology impact on economic education
Artem Yurchenko, Inna Kharchenko, Volodymyr Shamonia, Vladyslav Bespalyi, Serhii Bohoslavskyi, Olena Semenikhina179-186
Archives
-
Vol. 16 No. 2
2026-06-30 27
-
Vol. 16 No. 1
2026-03-30 27
-
Vol. 15 No. 4
2025-12-20 27
-
Vol. 15 No. 3
2025-09-30 24
-
Vol. 15 No. 2
2025-06-27 24
-
Vol. 15 No. 1
2025-03-31 26
-
Vol. 14 No. 4
2024-12-21 25
-
Vol. 14 No. 3
2024-09-30 24
-
Vol. 14 No. 2
2024-06-30 24
-
Vol. 14 No. 1
2024-03-31 23
-
Vol. 13 No. 4
2023-12-20 24
-
Vol. 13 No. 3
2023-09-30 25
-
Vol. 13 No. 2
2023-06-30 14
-
Vol. 13 No. 1
2023-03-31 12
-
Vol. 12 No. 4
2022-12-30 16
-
Vol. 12 No. 3
2022-09-30 15
-
Vol. 12 No. 2
2022-06-30 16
-
Vol. 12 No. 1
2022-03-31 9
Main Article Content
Authors
Abstract
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.
Keywords:
Sustainable Development Goals (SDG)
- 9 - Industry, Innovation, Technology and Infrastructure
References
[1] Abdulwareth, A. J., & Al-Shargabi, A. A. (2021). Toward a Multi-Criteria Framework for Selecting Software Testing Tools. IEEE Access, 9, 158872–158891. https://doi.org/10.1109/ACCESS.2021.3128071
[2] Bielesza, G. W., & Dzieńkowski, M. (2023). Comparison of tools for creating and conducting automated tests. Journal of Computer Sciences Institute, 29, 374–382. https://doi.org/10.35784/jcsi.3804
[3] Gonzalez, D., Santos, J. C. S., Popovich, A., Mirakhorli, M., & Nagappan, M. (2017). A Large-Scale Study on the Usage of Testing Patterns That Address Maintainability Attributes: Patterns for Ease of Modification, Diagnoses, and Comprehension. 2017 IEEE/ACM 14th International Conference on Mining Software Repositories (MSR), 391–401. https://doi.org/10.1109/MSR.2017.8
[4] Herman, I., & Plechawska-Wójcik, M. (2019). Study on applying the Cucumber tool in testing applications. Journal of Computer Sciences Institute, 11, 91–95. https://doi.org/10.35784/jcsi.146
[5] Huber, L. (2023). Comparing Spring REST api test frameworks—A comparison study [Bachelor’s thesis, Linnæus University]. https://lnu.diva-portal.org/smash/get/diva2:1764379/FULLTEXT01.pdf
[6] Jagannatha, S., Niranjanamurthy, M., Manushree, S. P., & Chaitra, G. S. (n.d.). Comparative Study on Automation Testing using Selenium Testing Framework and QTP. Retrieved 31 August 2025, from https://www.academia.edu/8818002/Comparative_Study_on _Automation_Testing_using_Selenium_Testing_Framework_and_QTP
[7] Ma’ayan, D. D. (2018). The quality of junit tests: An empirical study report. Proceedings of the 1st International Workshop on Software Qualities and Their Dependencies, 33–36. https://doi.org/10.1145/3194095.3194102
[8] Madeja, M., Porubän, J., Chodarev, S., Sulír, M., & Gurbáľ, F. (2021). Empirical Study of Test Case and Test Framework Presence in Public Projects on GitHub. Applied Sciences, 11(16), 7250. https://doi.org/10.3390/app11167250
[9] MVN Repository. (n.d.). [Data set]. Retrieved 31 August 2025, from https://mvnrepository.com
[10] Orellana, G., Laghari, G., Murgia, A., & Demeyer, S. (2017). On the Differences between Unit and Integration Testing in the TravisTorrent Dataset. 2017 IEEE/ACM 14th International Conference on Mining Software Repositories (MSR), 451–454. https://doi.org/10.1109/MSR.2017.25
[11] Oshin, V., & Chaudhary, V. (2018). Comparison Analysis of TESTNG and JUNIT frameworks for Automation with Java. International Journal of Emerging Technologies and Innovative Research, 5(6), 48–54.
[12] Psujek, M., Radzik, A., & Kozieł, G. (2021). Comparative analysis of solutions used in Automated Testing of Internet Applications. Journal of Computer Sciences Institute, 18, 7–14. https://doi.org/10.35784/jcsi.2373
[13] Raulamo-Jurvanen, P., Mäntylä, M., & Garousi, V. (2017). Choosing the Right Test Automation Tool: A Grey Literature Review of Practitioner Sources. Proceedings of the 21st International Conference on Evaluation and Assessment in Software Engineering, 21–30. https://doi.org/10.1145/3084226.3084252
[14] Shivaprasad, S., & Prasad, N. (2013). Unit Testing Concurrent Java Programs. International Journal of Computer Applications, 67(10), 41–46. https://doi.org/10.5120/11435-6798
[15] Shtokal, A., & Smołka, J. (2021). Comparative analysis of frameworks used in automated testing on example of TestNG and WebdriverIO. Journal of Computer Sciences Institute, 19, 100–106. https://doi.org/10.35784/jcsi.2595
[16] Wac, A. D., Watras, T. K., & Kozieł, G. (2020). Comparative analysis of solutions used in automated testing. Journal of Computer Sciences Institute, 15, 156–163. https://doi.org/10.35784/jcsi.2048
Article Details
Abstract views: 12

