Skip to content
e2enginePublic

About

End-to-end test suite for E2Engine.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

E2Engine end-to-end tests

End-to-end test suite for E2Engine.

Part of E2Engine, an open-source platform for declarative end-to-end testing.

This repository verifies E2Engine through its public interfaces using the CLI, MCP, Docker, real and mocked HTTP/gRPC services, direct and socket transports, persistence, and asynchronous execution flows.

Candidate CLI and MCP binaries and the CLI Docker image are built in their owning repositories. This Makefile builds the test helper services and consumes the candidate artifacts.

Coverage

Area Coverage
Environment, test, and test-suite lifecycle Create, list, get, execute, and delete flows
Spec validation Environment, test, and test-suite validation, including nested HTTP/gRPC configuration
Spec formats YAML and JSON execution specs
Direct transport HTTP and gRPC execution
Socket transport Asynchronous HTTP and gRPC execution
Test suites Multi-test suite execution and persisted child executions
Mocked HTTP services Fixture matching by path and body, fixture misses, and multiple-fixture no-match behavior
Mocked gRPC services Fixture matching by method and message, including fixture misses
Real-to-mocked dependencies Real HTTP/gRPC services calling mocked dependencies with captured calls
Call expectations Required calls, expected call counts, unmatched call parameters, and missing expected dependencies
Execution results Passed, failed, and error terminal states with persisted execution summaries
Telemetry CLI opt-out, installation registration and reuse, authenticated events, outcome mapping, and best-effort failures against a standalone HTTP mock; Docker registration and authenticated event reuse against the mock container
MCP All environment, test, and test-suite tools over stdio: successful operations and application errors, persistence across process restarts, and telemetry behavior
Runner lifecycle Direct execution waits for completion; socket executions run asynchronously and sequentially
Docker CLI execution in containers, mounted configuration and persistent data, mocked HTTP/gRPC execution, and communication with real services over a Docker network

The E2E suite focuses on behavior across component boundaries. Exhaustive field-level and implementation-specific cases belong in the unit tests of the corresponding E2Engine repository.

Repository structure

cli/          CLI E2E tests, harness, test data, and generated CLI binary
mcp/          MCP E2E tests, stdio harness, and generated MCP binary
docker/       Docker E2E tests, harness, configuration, and test data
services/     Helper HTTP/gRPC services, the telemetry HTTP mock, generated service binaries, and the reusable service Dockerfile
util/         Shared E2E comparison and test utilities

Candidate binaries are placed in cli/bin/ and mcp/bin/; test helper binaries are written to services/bin/. None is committed. Docker tests use the prebuilt E2Engine image and locally built helper service images.

Development

Build the candidate CLI binary in the CLI checkout, then run the CLI suite:

make -C ../cli build-cli-e2e E2E_CLI_PATH="$(pwd)/cli/bin/cli"
make test-cli-prebuilt

Build the candidate Docker image from the same CLI checkout, then run the Docker suite:

make -C ../cli build-image-e2e
make test-docker-prebuilt

The image target creates e2engine:local with the telemetry mock address http://telemetry-http:9000. Docker tests build their own helper service images.

Build the candidate MCP binary in the MCP checkout, then run the MCP suite:

make -C ../mcp build-e2e E2E_MCP_PATH="$(pwd)/mcp/bin/mcp"
make test-mcp-prebuilt

MCP builds with local module replacements need the corresponding sibling checkouts. The MCP suite uses a standalone telemetry HTTP mock and a temporary user profile; it does not contact production service.

Run all three suites and the linter after building the candidate artifacts:

make verify

make build builds only the test repository's helper binaries and images. The prebuilt test targets build their own helper prerequisites and check that the supplied CLI/MCP binaries or CLI image exist.

Stable branch

The stable branch provides a known-good version of the E2E test suite for downstream E2Engine repositories.

Downstream CI, such as the CLI build, should use stable rather than main. This prevents changes under development in the test suite from unexpectedly breaking downstream builds.

Changes are promoted in the following order:

  1. Update dependencies and tests on main.
  2. Build candidate CLI and MCP binaries and the CLI image locally, then run make verify. Ensure the tests repository lint CI passes.
  3. Promote main to stable:
git switch main
git pull --ff-only

# after local E2E verification and main lint CI are green
git push origin main:stable

The stable branch must always point to a commit from main that has passed lint CI and local E2E verification. Promotion should only fast-forward the branch and must not create new commits. CLI and MCP CI build their own candidate artifacts and run the corresponding prebuilt suites from stable.

  1. Update downstream repositories that depend on the new versions.

For example, when updating Core or instrumentation dependencies:

dependency release
        ↓
tests/main
        ↓
tests CI passes
        ↓
tests/stable
        ↓
downstream repository update

Links

License

Licensed under the Apache License, Version 2.0. See LICENSE.

About

End-to-end test suite for E2Engine.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages