Consumer-Driven Contract Tests for Microservices: A Case Study

被引:4
|
作者
Lehva, Jyri [1 ]
Makitalo, Niko [1 ]
Mikkonen, Tommi [1 ]
机构
[1] Univ Helsinki, Dept Comp Sci, Helsinki, Finland
基金
芬兰科学院;
关键词
Consumer-driven contract testing; Design by contract; Microservices; Test planning; Integration testing; Test coverage;
D O I
10.1007/978-3-030-35333-9_35
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Design by contract is a paradigm that aims at capturing the interactions of different software components, and formalizing them so that they can be relied upon in other phases of the design. Such a characteristic is especially helpful in the context of microservice architecture, where each service is an independent entity that can be individually (re)deployed. With contracts, testing of microservice based systems can be improved so that also the integration of different microservices can be tested in isolation by the developers working on the system. In this paper, we study how systems based on microservice architecture and their integrations can be tested more effectively by extending the testing approach with consumer-driven contract tests. Furthermore, we study how the responsibilities and purposes of each testing method are affected when introducing the consumer-driven contract tests to the system.
引用
收藏
页码:497 / 512
页数:16
相关论文
共 50 条
  • [1] Testing for Event-Driven Microservices Based on Consumer-Driven Contracts and State Models
    Wu, Chu-Fei
    Ma, Shang-Pin
    Shau, An-Chi
    Yeh, Hang-Wei
    [J]. 2022 29TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE, APSEC, 2022, : 467 - 471
  • [2] Consumer-Driven Memorialization
    Anderson, Stephanie
    Hamilton, Kathy
    [J]. JOURNAL OF CONSUMER RESEARCH, 2024, 50 (05) : 985 - 1007
  • [3] Consumer-driven, "prosumers"
    不详
    [J]. BWK, 2010, 62 (1-2): : 12 - 12
  • [4] Consumer-driven: Be careful
    Meyer, K
    [J]. HOSPITALS & HEALTH NETWORKS, 2004, 78 (06): : 10 - 10
  • [5] The consumer-driven economy at a crossroads
    Yerex R.P.
    [J]. Business Economics, 2011, 46 (1) : 32 - 42
  • [6] Consumer-Driven Health Care
    Herzlinger, Regina E.
    Falit, Benjamin P.
    [J]. JAMA-JOURNAL OF THE AMERICAN MEDICAL ASSOCIATION, 2009, 301 (20): : 2093 - 2094
  • [7] The consumer-driven market to come
    Halligan, T
    [J]. ELECTRONIC DESIGN, 1998, 46 (14) : 18 - 18
  • [8] Consumer-driven health plans
    Lo Sasso, AT
    [J]. HEALTH AFFAIRS, 2003, 22 (01) : 279 - 280
  • [9] Consumer-Driven Health Care
    Metz, Samuel
    [J]. HEALTH AFFAIRS, 2014, 33 (05)
  • [10] Consumer experiences in a consumer-driven health plan
    Christianson, JB
    Parente, ST
    Feldman, R
    [J]. HEALTH SERVICES RESEARCH, 2004, 39 (04) : 1123 - 1139