Environments start on the Pro plan. Pro allows 3 environments, Team allows 10, and Enterprise is custom. See Pricing.
Add a mapping
- Open Project Settings → Branch Mapping
- Enter a Name and short Label (for example,
PROD,STAGE,DEV) - Optionally set a Description and color
- Add a Branch pattern: exact name (
main) or regex (^feature/) - Save. Changes can take up to 2 minutes to apply
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
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