e2e: Agentic Testing Framework for Web and Mobile Apps
The open-source e2e framework combines AI agents with deterministic tests using a single API for web, iOS, and Android applications.
The e2e-inc team has released e2e, an open-source end-to-end testing framework designed for web and mobile applications. It allows developers to define test goals in natural language, which an AI agent then executes to navigate the app, while maintaining the ability to verify results using traditional locators and assertions. This approach enables a hybrid testing strategy where AI-driven actions are combined with deterministic checks.
Combining Natural Language Goals with Deterministic Assertions
The framework uses an agent to drive the application toward a specific goal described in plain text. For example, a test can instruct the agent to upgrade a workspace to a Pro plan and then assert that the invoice preview shows a prorated amount. These agent-driven steps can be mixed with standard assertions, such as checking if a status element contains specific text.
To optimize performance and cost, the framework records the actions taken by the agent during a successful run. Subsequent executions replay these recorded actions without making new model calls, provided the application has not changed. Tests that do not utilize agent steps function without requiring an AI model.
Users can provide their own API keys, subscriptions, or utilize local models. The framework is compatible with OpenAI, Claude, and other AI models. For those using specific coding agents, the Agent Client Protocol allows running agent steps via Claude Code or Codex.
Unified API for Web, iOS, and Android
The e2e ecosystem is split into several core packages. The main e2e package provides the SDK, runner, and CLI. Browser testing is handled by @e2e-dev/web, which supports Chromium, Firefox, and WebKit via Playwright. Mobile testing is managed by @e2e-dev/mobile, utilizing simulators and emulators for iOS and Android.
The framework includes @e2e-dev/decision, which provides decision-model executors for semantic actions and a decisionFilter to exclude tests unlikely to be affected by a specific pull request. Integration with various environments is supported through specialized packages, including Cloudflare Browser Run, Lightpanda, and E2B sandboxes, which provide Android 16 and Chromium environments.
Mobile-specific integrations include BrowserStack App Automate for real devices, as well as Limrun and Expo Simulators for hosted iOS and Android environments. For reporting, the framework offers a GitHub reporter for pull request comments and an HTML reporter that generates a single page containing steps, screenshots, and video.
Project Setup and Compatibility
The framework is written in TypeScript and licensed under Apache-2.0. To initialize a project, users can run the following command:
npx e2e initThe initialization process prompts the user to select an engine (web or mobile) and a model provider, subsequently generating a configuration file and an example test. The repository provides standalone examples for various stacks, including Vite, Next.js, Astro, Angular, Expo, SwiftUI, Jetpack Compose, Kotlin Multiplatform, Flutter, and .NET MAUI.
The CLI includes telemetry that sends anonymous usage data regarding commands and engine failures, though it does not collect test content or credentials. This can be disabled using npx e2e telemetry disable or by setting E2E_TELEMETRY_DISABLED=1. The framework is currently in active development toward version 1.0, meaning APIs and configurations may change between minor releases.
Sources
Related news
AI Toolsai-file-sorter: Cross-Platform Desktop App Renames Files Using Local or Remote LLMsOpen-source tool analyzes images, documents, and media metadata to suggest descriptive filenames and categories, with full user review before any changes.·by shared tag
- Open SourceSEOmator SEO Audit: Open-Source Tool With 398 Rules Ships as CLI, Desktop App, and Claude Code SkillSEO specialist Emre Elbeyoglu released SEOmator SEO Audit — an open-source auditor that checks sites against 398 rules across 20 categories and runs as a CLI, Electron app, or Claude Code skill with M·by shared tag
- Open SourceCodync: Open-Source Grok Bot Alternative Turns 40+ AI Agents into Messageable BotsRust-based Codync lets you message Claude Code, Codex, Gemini CLI, Cursor and dozens of other agents from your phone or any device — free, no paid tier, using your existing subscriptions.·by shared tag
- Open SourceVercel Labs open-sources agent-desktop for OS automationVercel Labs released agent-desktop, a CLI and C library that lets AI agents operate desktop apps via accessibility trees instead of screenshots.·by shared tag
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.