---
title: "Testing Configuration"
description: "Test execution behavior settings."
canonical_url: "https://mubaidr.github.io/gem-team/configuration/testing"
---

> Index of every page on this site: [llms.txt](https://mubaidr.github.io/gem-team/llms.txt)

## Configuration

```yaml
testing:
  screenshot_on_failure: true
```

## Example: Screenshot on Test Failure

```yaml
# Task input to gem-browser-tester
objective: "Verify login flow"
acceptance_criteria:
  - "Login succeeds with valid credentials"
  - "Error shown for invalid credentials"
handoff:
  constraints: ["Staging env", "Chrome"]
  relevant_context:
    - "screenshot_on_failure: true"
```

**When test fails:**

- Browser Tester captures full-page screenshot
- Saved to: `wave-{n}/{task}/artifacts/failure-screenshot.png`
- Included in failure evidence for Debugger/Reviewer

## Settings

| Setting                         | Type    | Default | Description                                   |
| ------------------------------- | ------- | ------- | --------------------------------------------- |
| `testing.screenshot_on_failure` | boolean | `true`  | Capture screenshot when browser/UI tests fail |

## Behavior

When `screenshot_on_failure: true`:

- Browser Tester captures full-page screenshot on test failure
- Screenshot saved to task artifacts: `wave-{n}/{task}/artifacts/failure-screenshot.png`
- Included in failure evidence for Debugger/Reviewer
- Works with both browser and mobile testing

When `screenshot_on_failure: false`:

- No automatic screenshot capture
- Manual screenshots only via explicit acceptance criteria

## Related Pages

- [Browser Tester](https://mubaidr.github.io/agents/browser-tester) - Screenshot capture in testing
- [Mobile Tester](https://mubaidr.github.io/agents/mobile-tester) - Mobile screenshot behavior
- [Failure Handling](https://mubaidr.github.io/guide/failure-handling) - Screenshots in failure evidence
- [Configuration Overview](https://mubaidr.github.io/configuration) - Full config reference

## Sitemap

See the full [sitemap](https://mubaidr.github.io/gem-team/sitemap.md) for all pages.
