Главная
Study mode:
on
1
Intro
2
About me
3
Just another day at work
4
How the code is currently organized
5
How the code is currently deployed
6
We're agile & we care about quality
7
Application Architecture
8
How the code is currently tested
9
Unit tests FTW!
10
Integration tests FTW!
11
End to end tests FTW!
12
Testing Strategy - Hard Coded Object Stubs
13
Problems with hard coding stubs
14
Generating Stubs From Proxy
15
Testing Strategy - Generated Remote Stub
16
Hard Problems
17
Service Evolution Patterns
18
Definitions
19
Provider Contract
20
Consumer Contract
21
Benefits of Consumer Driven Contracts
22
How the code should be tested
23
Consumers create stubs (current approach)
24
Example of a contract
25
Generating Stubs & Tests (PRODUCER)
26
Contract Tests (PRODUCER)
27
Generated Stubs (PRODUCER)
28
Monolith as source of truth (better approach)
29
Reuse Stubs (CONSUMER)
30
Nice API creation
31
Store the stubs from contracts locally
32
Play with the API offline
33
Producer sets up a project
34
Producer makes the generated tests pass
35
CI server builds the producer code
36
Consumer uses uploaded stubs
37
Messaging
38
Doesn't work
39
Polyglot
40
What have we managed to build?
Description:
Explore effective contract testing strategies for enterprise applications in this conference talk. Learn how to address common challenges like unreliable shared testing environments and API inconsistencies. Discover techniques for migrating legacy applications to work with stubs of external services, improving test reliability through API contract tests, and understanding the differences between producer and consumer-driven contracts. Dive into various testing approaches, including unit, integration, and end-to-end tests, as well as strategies for generating and using stubs. Gain insights into service evolution patterns, benefits of consumer-driven contracts, and best practices for implementing contract tests in both producer and consumer scenarios. Explore solutions for monolithic architectures, API creation, and handling messaging and polyglot environments. By the end, acquire valuable knowledge to enhance your testing processes and improve overall software quality in enterprise settings. Read more

Contract Tests in the Enterprise

Devoxx
Add to list