> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobileboost.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Code generation

> Automatically generate and maintain native test code from your codebase

Code generation automates the creation and maintenance of test automation code directly within your repository.

## How it works

<Steps>
  <Step title="Install the GitHub App">
    Install the **MobileBoost SDET Agent** Github App in your repository. This gives MobileBoost access to monitor pull requests and propose test changes.
  </Step>

  <Step title="MobileBoost monitors pull requests">
    When a PR is opened or updated, MobileBoost analyzes the Git diff to understand what changed in your application.
  </Step>

  <Step title="Tests are generated automatically">
    MobileBoost adjusts existing test code or generates new test code based on the changes in the PR.
  </Step>

  <Step title="Request tests from QA Studio">
    You can also request new tests directly from QA Studio. MobileBoost generates the code and creates a new PR to add the test cases to your codebase.
  </Step>
</Steps>

## Native framework support

MobileBoost generates native test automation code for:

* **XCUITest** for iOS
* **Espresso** for Android

Native tests are augmented with the MobileBoost SDK, which acts as an AI fallback for automating complex flows that contain non-accessible elements, including:

* Web views
* Third-party components
* Graphical elements (charts, maps)

## Local code generation

Test code can also be generated locally inside your IDE using the MobileBoost agentic skill. This works with **Cursor**, **Claude Code**, and other supported agents, letting you generate and iterate on tests without leaving your editor.

<Card title="Local Tooling" icon="code" href="/engineer-tooling/agent-skill">
  Learn how to set up the MobileBoost agent skill in your IDE.
</Card>
