E2E Testing Mode
RbxSync's E2E (end-to-end) testing mode enables AI agents to run playtests and see console output in real-time.
Overview
When E2E mode is enabled:
- Console output streams to VS Code terminal
- AI can see
print(),warn(), anderror()messages - Tests can be started/stopped programmatically
- Errors are captured for automated debugging
Enabling E2E Mode
In VS Code, run: RbxSync: Toggle E2E Mode
Or use the MCP server for programmatic control.
Console Streaming
All Studio output appears in the VS Code terminal:
[INFO] Player joined: Player1
[WARN] Low memory warning
[ERROR] Script error on line 42Messages are color-coded:
- White - print() info messages
- Yellow - warn() warnings
- Red - error() errors
AI-Powered Workflow
This enables autonomous AI development:
- AI writes code - Creates or modifies scripts
- AI syncs to Studio - Pushes changes
- AI runs playtest - Starts the test
- AI sees output - Console streams to terminal
- AI fixes errors - Reads errors and patches code
- AI iterates - Repeats until tests pass
MCP Integration
The MCP server provides tools for E2E testing:
json
{
"tool": "run_test",
"arguments": {
"mode": "play"
}
}See MCP Tools for full reference.
Test Modes
| Mode | Description |
|---|---|
run | Live playtest with streaming |
play | Solo playtest (like F5) |
server | Server simulation |
Best Practices
- Clear console before tests - Easier to parse output
- Use structured logging - Makes AI parsing easier
- Add test assertions -
error()on failures - Keep tests focused - One behavior per test
