Scale Up Your E2E Tests Using Mock Server

Introduction

The Pains of E2E tests in CI/CD World

Approaches to E2E test development

  • Develop your own Simulator Server
  • Using vcrpy unit tests
@vcr.use_cassette("my_cassette.yaml")
def test_url():
res = requests.post("https://www.somexyz.org/api/message/? access_token=ACCESSTOKEN", data={'subject': "test_subject", 'message': "test_message"}) res.raise_for_status() assert res.json() == {"string": "success"}
  • Mocking in distributed systems

Cornell: record & replay mock server in Python

Cornell Main Features

Record API Interaction

Replay for Testing

Extend Cornell

Alternatives

Personal Note

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yael Mintz

Passionate pythonista, code quality advocate, an OSS contributor. For the past years, been a backend engineer, infradev and automation princess