Hamcrest vs AssertJ: An Empirical Assessment of Tester Productivity

2Citations
Citations of this article
3Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Context. Extensive unit testing is worth its costs in terms of the higher quality of the final product and reduced development expenses, though it may consume more than fifty percent of the overall project budget. Thus, even a tiny percentage of saving can significantly decrease the costs. Since recently competing assertion libraries emerged, we need empirical evidence to gauge them in terms of developer productivity, allowing SQA Managers and Testers to select the best. Objective. The aim of this work is comparing two assertion frameworks having a different approach (matchers vs. fluent assertions) w.r.t. tester productivity. Method. We conducted a controlled experiment involving 41 Bachelor students. AssertJ is compared with Hamcrest, in a test development scenario with the Java language. We analysed the number of correct assertions developed in a tight time frame and used this measure as a proxy for tester productivity. Results. The results show that adopting AssertJ improves the overall tester’s productivity significantly during the development of assertions. Conclusions. Testers and SQA managers selecting assertion frameworks for their organizations should consider as first choice AssertJ, since our study shows that it increases the productivity of testers during development more than Hamcrest.

Author supplied keywords

Cite

CITATION STYLE

APA

Leotta, M., Cerioli, M., Olianas, D., & Ricca, F. (2019). Hamcrest vs AssertJ: An Empirical Assessment of Tester Productivity. In Communications in Computer and Information Science (Vol. 1010, pp. 161–176). Springer Verlag. https://doi.org/10.1007/978-3-030-29238-6_12

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free