Skip to main content
Map Git branches to environments (Dev, Staging, Production) with exact names or regex patterns. TestDino routes each test run to the matching environment from the branch that triggered it.
Environments start on the Pro plan. Pro allows 3 environments, Team allows 10, and Enterprise is custom. See Pricing.

Add a mapping

  1. Open Project Settings → Branch Mapping
  2. Enter a Name and short Label (for example, PROD, STAGE, DEV)
  3. Optionally set a Description and color
  4. Add a Branch pattern: exact name (main) or regex (^feature/)
  5. Save. Changes can take up to 2 minutes to apply
Branch mapping table with environment names and branch patterns
A branch pattern can belong to only one environment. Duplicate patterns across environments are not allowed. If ^feature/ is already on Development, you cannot add the same pattern to Staging.
When you run tests with TESTDINO_TOKEN set, TestDino reads the branch from git metadata and applies the matching pattern. No upload flag is required. See Project Settings → Branch Mapping for the UI fields.

Pattern types

Exact match

Match the branch name exactly as written. Use exact match for fixed names like main, master, or production.

Regex patterns

Common patterns

Branch prefixes

Version numbers

Case-insensitive

Use (?i) when casing is inconsistent:

Common use cases

Git Flow

Environment prefixes

Version releases

Regex symbols reference

Test patterns on regex101.com before saving.

Best practices

Do

Avoid

Validation

Errors (blocks saving):
  • Invalid characters (;, &, `, ", ', <, >, %) or invalid regex syntax (unclosed brackets, invalid escapes)
  • Duplicate branch pattern already used on another environment in the same project
Warnings (allows saving): unanchored patterns that may match more than intended.

Testing patterns

Example: ^dev/

Example: ^release/v\d+\.\d+

Assign the environment

Results stream to TestDino during the run. The branch that triggered the run maps to an environment through the rules above, so no upload flag is needed. See the Node.js CLI for setup.

Project Settings

Configure branch mapping in the project

Node.js CLI

Stream results with branch metadata

GitHub Actions

CI workflow setup

Analytics

Filter dashboards by environment