intuit / intuit/stunt-double

test: add e2e test for error handling when MCP servers are unavailable

Open
#39 1 comment 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Python
Stars
15
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## Problem

There are no e2e tests covering how the mirroring subsystem behaves when an MCP server is unreachable, times out, or returns errors.

## Proposed Solution

Add e2e tests in `tests-e2e/` that verify graceful error handling when:
- MCP server is unreachable (connection refused)
- MCP server times out
- MCP server returns malformed responses

## Files

- `tests-e2e/`
- `src/stuntdouble/mirroring/`

## Difficulty

Medium

Contributor guide

Open the contributing guide

Research direction

Start in tests-e2e/ and inspect the related mirroring code under src/stuntdouble/mirroring/. Add end-to-end coverage for an unreachable MCP server, a timeout, and malformed responses, verifying graceful error handling in each case. Done means all three failure scenarios are exercised and the tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.