An Empirical Analysis of Microservices Systems Using Consumer-Driven Contract Testing
Paper in proceeding, 2022

Testing has a prominent role in revealing faults in software based on microservices. One of the most important discussion points in MSAs is the granularity of services, often in different levels of abstraction. Similarly, the granularity of tests in MSAs is reflected in different test types. However, it is challenging to conceptualize how the overall testing architecture comes together when combining testing in different levels of abstraction for microservices. There is no empirical evidence on the overall testing architecture in such microservices implementations. Furthermore, there is a need to empirically understand how the current state of practice resonates with existing best practices on testing. In this study, we mine Github to find different candidate projects for an in-depth, qualitative assessment of their test artifacts. We analyze 16 repositories that use microservices and include various test artifacts. We focus on four projects that use consumer-driven-contract testing. Our results demonstrate how these projects cover different levels of testing. This study (i) drafts a testing architecture including activities and artifacts, and (ii) demonstrates how these align with best practices and guidelines. Our proposed architecture helps the categorization of system and test artifacts in empirical studies of microservices. Finally, we showcase a view of the boundaries between different levels of testing in systems using microservices.

repository mining

Microservice architecture

consumer-driven contract test

Author

Hamdy Michael Ayas

Chalmers, Computer Science and Engineering (Chalmers), Interaction Design and Software Engineering

Hartmut Fischer

Student at Chalmers

University of Gothenburg

Philipp Leitner

Chalmers, Computer Science and Engineering (Chalmers), Interaction Design and Software Engineering

Francisco Gomes de Oliveira Neto

University of Gothenburg

Proceedings - 48th Euromicro Conference on Software Engineering and Advanced Applications, SEAA 2022

92-99
9781665461528 (ISBN)

48th Euromicro Conference on Software Engineering and Advanced Applications, SEAA 2022
Gran Canaria, Spain,

Subject Categories

Software Engineering

Information Science

Computer Systems

DOI

10.1109/SEAA56994.2022.00022

More information

Latest update

1/3/2024 9