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

# Test repository

> Clone and work with the Playwright tests Empirical maintains

Every Empirical project has a git repository containing its Playwright tests. This is separate from your application repository: Empirical tests your deployed application as a black box and does not need your application source code.

## Clone the repository

Install and sign in to the [Empirical CLI](https://empirical.run/docs/cli.md), then run:

```sh theme={null}
empirical clone
```

If your account has access to more than one project, select one by slug:

```sh theme={null}
empirical clone --project <project-slug>
```

Pass a directory as the first argument to choose where the repository is cloned:

```sh theme={null}
empirical clone my-tests --project <project-slug>
```

The clone URL uses Empirical's git endpoint at `git.empirical.run`. The CLI configures a credential helper automatically so git can use your Empirical login.

## Use git directly

To configure the credential helper without cloning, run this once on each machine:

```sh theme={null}
empirical git setup
```

You can then use standard git commands:

```sh theme={null}
git clone https://git.empirical.run/<project-slug>.git
git fetch origin
git push -u origin <branch-name>
```

Your user login can fetch and push feature branches. Pushes to the project's default branch are rejected; changes should be reviewed and merged through the normal pull request workflow. Project API keys, including keys used by CI and test-run containers, have read-only repository access.

## Ownership

The test code written for your project belongs to your organization. Contact [hey@empirical.run](mailto:hey@empirical.run) if you need repository access or an export.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.