Skip to main content

Open-source engineering project

E2Engine logo

E2Engine

Declarative end-to-end testing for distributed systems

E2Engine is a product I founded and built to make tests across service boundaries easier to define, run, and understand. It brings test environments, HTTP and gRPC interactions, service mocking, execution, and results into one structured model.

  • Go
  • Distributed systems
  • HTTP / gRPC
  • Testing infrastructure

The problem

Why I built it

End-to-end tests for distributed applications often accumulate application-specific setup: service dependencies, mock servers, test data, orchestration scripts, and custom ways to verify interactions. That makes the intent of a scenario hard to see and the environment hard to reproduce.

E2Engine explores a declarative alternative. An Environment defines the participating services; a Test defines a request and its expected response and service calls; a TestSuite groups scenarios. The engine handles runtime setup, execution, observation, and the resulting record. This keeps scenario intent visible and lets the same model serve local development and container-based CI.

System design

Architecture at a glance

The core coordinates resources and execution without depending on a particular CLI, repository implementation, or execution transport. That separation lets storage and worker infrastructure evolve without changing scenario definitions. Protocol-specific executors and evaluators handle HTTP and gRPC while sharing one execution lifecycle.

  1. 01Declarative resourcesEnvironments, Tests, and TestSuites describe topology and expected behavior.
  2. 02CoreValidates resources, coordinates execution, and records structured results.
  3. 03Scheduler & runnerDeliver and execute work independently of the core model.
  4. 04Runtime environmentRoutes traffic to real or mocked HTTP and gRPC services and observes calls.
Conceptual execution path. Persistence sits behind a separate repository contract; results flow back into structured execution records.

Engineering work

Engineering highlights

Clear architectural boundaries

I split the core domain model, persistence implementations, local runner, and CLI into focused Go modules. The core depends on contracts for storage and execution, so infrastructure choices do not shape the test model.

Distributed-system behavior

An Environment models service boundaries. At runtime, E2Engine routes requests to real or mocked HTTP and gRPC services, captures interactions, and checks both responses and calls against declared expectations.

Results you can inspect

Executions retain requests, responses, observed calls, deviations, and lifecycle state as structured records. Deterministic suite selection and explicit matching rules help make failures reproducible and useful in automation.

From code to release

The project includes end-to-end tests and an executable distributed-system demo. I also built the CLI delivery path for macOS, Linux, Windows, and container-based CI workflows.

Ownership

My role

I founded E2Engine and own its product direction and engineering: domain model, component boundaries, HTTP/gRPC execution, test infrastructure, documentation, and release process. Building it from scratch has meant making both architectural choices and the smaller delivery decisions needed to turn an idea into a usable tool.