What you’ll learn
- How to authorize and connect GitLab via OAuth
- How to configure MR comments and commit summaries
- How the Merge Requests dashboard syncs with GitLab
NoteOnly one Git provider (GitHub or GitLab) can be active per project at a time. If you need GitHub, see GitHub Integration. Running GitLab on your own infrastructure? See GitLab Self-Managed Integration.
What the GitLab Integration Does
| Feature | What It Does | Where It Appears |
|---|---|---|
| MR Comments | Posts AI-generated summary with pass/fail counts, failure analysis grouped by file, and a link to the full report | GitLab merge request comments |
| Commit Comments | Posts the same AI summary attached to the specific commit | GitLab commit detail page |
| MR State Sync | Syncs merge request state (open, merged, closed) so TestDino stays current with your MR lifecycle | TestDino → Pull Requests |
| Merge Request Dashboard | Syncs MR metadata (author, reviewers, status, branches) and displays test run KPIs, pass rate trends, and AI failure insights per MR | TestDino → Pull Requests |
| Timeline | Syncs commits, test runs, and code review events into a chronological feed per MR | TestDino → MR Timeline |
| Files Changed | Syncs file diffs, additions, deletions, and code-level comments with resolved/unresolved status | TestDino → MR Files Changed |
InfoGitLab does not support CI Checks (quality gates that block merges). That feature is available with the GitHub integration only. GitLab comment summaries still give your team full visibility into test results on every MR.
Prerequisites
- A TestDino account with a project created (Getting Started)
- An API key generated for your project (Generate API Keys)
- The Playwright CLI configured and uploading results (CLI Overview)
- GitLab Maintainer or Owner access on the repository you want to connect
Connect TestDino with GitLab
Connection is a two-step process: authorize TestDino via GitLab OAuth, then select which repository to connect in TestDino.1. Authorize TestDino in GitLab
Go to Settings → Integrations → CI/CD in your TestDino project and select GitLab. This redirects you to GitLab to authorize TestDino. Sign in to GitLab (if not already) and approve the OAuth request. TestDino requests access to read your repositories, merge requests, and commits.
NoteThis step grants TestDino access to your GitLab account. It does not connect a specific repo to your TestDino project yet. You can revoke access anytime from GitLab → Settings → Applications.
2. Connect a repository to your TestDino project
After authorization, the browser redirects back to TestDino. You land on the repository selection screen. Pick the repository you want to link to this project.
After selecting a repo, the GitLab card in Settings → Integrations shows the connected repository name.
TestDino starts syncing MR metadata and attaching test runs to commits from this point forward.
The sections below cover what you can configure and access after the connection is active.
Configure MR Comments
When a Playwright run finishes, TestDino can post an AI-generated test summary directly to the merge request or commit in GitLab. To control where and when these comments appear, you configure them through GitLab Settings in TestDino.
Open Settings → Integrations → GitLab and click the ⚙️ icon on the GitLab card. This opens the GitLab Settings panel.
Default comment toggles
At the top, two toggles control the global defaults:- Merge Request Comments: posts a test summary to every MR on a mapped branch
- Commit Comments: posts a test summary to every commit on a mapped branch
Environment overrides
Below the defaults, the Environment Overrides table lists each environment configured in your project (e.g., PROD, DEV, MAIN, QA, STAGE). Each row shows:| Column | What It Controls |
|---|---|
| Environment | The environment name (configured in Environment Mapping) |
| Branch Patterns | Which branches map to this environment (e.g., main, dev, staging) |
| MR | Toggle MR comments on or off for this specific environment |
| Commits | Toggle commit comments on or off for this specific environment |
Merge Requests in TestDino
Once connected, TestDino syncs your GitLab merge requests into the Pull Requests view. Each MR shows:| Tab | What It Shows |
|---|---|
| Overview | MR status, test run KPIs (pass rate, duration, files changed), latest run with AI failure insights, and test results trend graph |
| Timeline | Chronological feed of commits, test runs, and code review events synced from GitLab |
| Files Changed | File diffs with additions, deletions, and code-level comments with resolved/unresolved status |
Troubleshooting
MR comments not appearing
MR comments not appearing
- Verify the global comment toggles are enabled in Settings → Integrations → GitLab → ⚙️
- Confirm the branch that triggered the run is mapped to an environment (if using overrides)
- Check that the CLI is uploading with the correct project API key
Merge requests not syncing in TestDino
Merge requests not syncing in TestDino
- Verify the GitLab OAuth connection is still active in Settings → Integrations
- Ensure the correct repository is connected to the TestDino project
- Confirm tests have run on the MR branch at least once after connecting
OAuth authorization failed
OAuth authorization failed
Repository not appearing in selection list
Repository not appearing in selection list
- The OAuth token may not have access to that repo. Revoke and re-authorize to refresh permissions
- Ensure the repository is not archived in GitLab
GitLab Self-Managed
Connect TestDino to a self-managed GitLab instance via OAuth
GitHub Integration
Connect GitHub with PR comments, CI checks, and quality gates
Environment Mapping
Map branches to environments for targeted reporting
Pull Requests Dashboard
View all MRs with test run results, trends, and AI insights