Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contract testing provider #39

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions _posts/2020-05-06-contract_testing_intro.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: "Contract Testing with Pact & Kotlin: Part 1 - Introduction"
date: 2020-05-06T08:00:00 -0000
categories:
- blog
tags:
- contract-testing
- kotlin
- pact
excerpt: "Do you want to validate if your components can work together without connecting them? Let's see how to it with Contract Testing"
toc: true
toc_icon: "cog"
---

# Contract Testing with Pact & Kotlin: Introduction

{% include figure image_path="/assets/images/contract_testing/front.jpg" alt="Contract" %}

Note: This post's content is part of my presentation on the [Automation Guild 2020 talk](https://guildconferences.com/conferences/automation-2020/) named _"Grow Your Automation Toolkit: Because when all you have is a hammer..."_.

# The integration problem

## Applications

### Frontend applications
### Backend application
### fragility

# Validating integtration with Consumer-Driven Contract Testing

## How does it differs from functional testing?
TODO - Lego analogy

# Following posts
45 changes: 45 additions & 0 deletions _posts/2020-05-13-contract_testing_consumer.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: "Contract Testing with Pact & Kotlin: Part 2 - Consumer Contracts"
date: 2020-05-13T08:00:00 -0000
categories:
- blog
tags:
- contract-testing
- kotlin
- pact
excerpt: "Let's code our consumer contracts, so we can inform your providers which data we will send and we expect to receive"
toc: true
toc_icon: "cog"
---

# Contract Testing with Pact & Kotlin: Part 2 - Consumer Contracts

{% include figure image_path="/assets/images/contract_testing/front.jpg" alt="Contract" %}

Note: This post's content is part of my presentation on the [Automation Guild 2020 talk](https://guildconferences.com/conferences/automation-2020/) named _"Grow Your Automation Toolkit: Because when all you have is a hammer..."_.

# Recap: What is a consumer contract?

# Consumer contracts

## For the social app

### Mock service
#### Definition
#### Configuration
TODO - Queries and Payloads
#### Test
#### Resulting contract

## For the professional app

### Mock service
#### Definition
#### Configuration
TODO - Queries and Payloads
#### Test
#### Resulting contract

# Tips
## Use the production client
## Avoid race conditions
26 changes: 26 additions & 0 deletions _posts/2020-05-20-contract_testing_provider.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: "Contract Testing with Pact & Kotlin: Part 3 - Provider Verification"
date: 2020-05-20T08:00:00 -0000
categories:
- blog
tags:
- contract-testing
- kotlin
- pact
excerpt: "The final piece of integration testing is to verify if the data providers can fullfil its consumers expectations. Let's do it!"
toc: true
toc_icon: "cog"
---

# Contract Testing with Pact & Kotlin: Part 3 - Provider Verification

{% include figure image_path="/assets/images/contract_testing/front.jpg" alt="Contract" %}

Note: This post's content is part of my presentation on the [Automation Guild 2020 talk](https://guildconferences.com/conferences/automation-2020/) named _"Grow Your Automation Toolkit: Because when all you have is a hammer..."_.

# Recap: What is a provider verification?

# Verification as a test
# Tips
## Refactor your controllers
## Remove trash from your providers
Binary file added assets/images/contract_testing/front
Binary file not shown.