Before you start
- Give Peeps access to the repository. On GitHub, install the Peeps GitHub App on the repository. On GitLab, connect the GitLab group that holds it.
- Use an empty project. A repository can only be connected to a project with no test cases, because the tests in the repository take the place of the ones Peeps would hold. Only web projects can be connected.
Connect the project
1
Open the project's repository settings
In Peeps, open the project, then Settings and select Repository under Project.
2
Choose where your repository lives
Select GitHub or GitLab.
3
Pick the repository
- GitHub
- GitLab
Choose the GitHub installation, then the Repository.
4
Check where the tests live
Peeps looks through the repository and fills in two fields for you. Change either if it’s wrong.
- Test root is the directory your suite lives in, relative to the repository root. Use
.for the whole repository. - Playwright config is the path to your Playwright config, relative to the repository root. Leave it empty to let Playwright find its own.
.gitlab-ci.yml unless yours is elsewhere.5
Connect
Click Connect repository (GitHub) or Connect GitLab project (GitLab).Peeps starts reading your repository straight away. The page shows Reading your repository… until the tests it finds appear under Tests found in the repository.
When the project already has tests
A project that already has test cases can’t be connected. The Repository page says This project already has tests and offers Create a project for your repository. That opens the usual new-project dialog, filled in for you:- the name is the current project’s name followed by “(repository)”
- the environments that have a
BASE_URLare copied from the current project, with their names andBASE_URLvalues only; other variables and secrets are not copied
Choose the headline branch
Peeps mirrors one branch of your repository, the headline branch. Its tests are the project’s test cases, and fixes and new tests open against it unless they’re for another branch Peeps follows. The headline branch is your repository’s default branch unless you choose another. A team that ships fromdevelop can choose develop, and Peeps keeps mirroring it even if the repository’s default stays main. Peeps re-reads the headline branch on its own when you push to the repository’s default branch, so after a push to a different headline branch, click Run inventory now to see the change straight away. See When Peeps reads your tests.
To change it, click Change next to Headline branch and pick a branch. Peeps re-reads the tests on the new branch straight away. Peeps also follows other branches, such as staging; see Tracked branches.
Check what Peeps can do
The What Peeps can do in this repository card lists each thing Peeps does in your repository, with Allowed or Missing permission beside it.
On GitLab, everything that writes needs a token with the
api scope, and reading needs read_api or api.
If you grant a permission or replace the GitLab token after connecting, click Re-check permissions so Peeps reads the change.
Settings you can change later
The Settings card on the Repository page holds:- Test root and Playwright config (optional), as above.
- Workflow file (GitHub): the file name under
.github/workflows/that Peeps starts,peeps.ymlby default. On GitLab, CI configuration. - Open fix pull requests: the most pull requests Peeps keeps open in the repository at once, fixes and new tests together, from 1 to 50. It’s 5 unless you change it.
- Healed fixes arrive as and Generated tests arrive as: Pull request or Draft pull request.
- Include every pytest test under the test root: see Python tests.
Disconnecting
There’s no disconnect button on the project. To stop Peeps reaching your repository:- GitHub: uninstall the Peeps GitHub App, or remove the repository from it, on GitHub.
- GitLab: disconnect the group under Settings > GitLab in Peeps.
Need help connecting? Get in touch.