# Make external API dependency great again (API contract testing)

- URL: https://evilmartians.com/events/make-external-api-dependency-great-again-api-contract-testing
- Date: 2018-11-29T00:00:00.000Z
- Conference: RubyConfBY
- City: Minsk, Belarus
- Speakers: Sergey Dolganov
- Event website: https://www.facebook.com/rubyconference.by/
- Video: https://www.youtube.com/watch?v=uLCcm3B09ZM&list=PLpVeA1tdgfCD5vCJvBlbUGTNd5KHO4AWL&index=8

---

Nowadays, unit tests are an essential part of our development process. However, while we can be proud of 100% test coverage, it does not mean that our code behaves as expected, notably when we deal with external APIs.

I'm working on the [eBaymag](https://evilmartians.com/clients/ebaymag) project, which is mostly built around various API interactions: eBay API, Google Translate API, DHL API, and so on. I solve different sophisticated problems based on unexpected API behavior on a daily basis.

So I want to introduce a contract-based testing framework that aims to get rid of unexpected behavior of your app. I'll share the tools and approaches to minimize the risks of dependence on external system APIs.
