Skip to main content
No Result Found

Set Environment Variables

Configure your environment variables to allow App Percy builds to run seamlessly.

App Percy integrates with your tests using both Percy and BrowserStackSDK. To establish this integration, choose the appropriate SDK and refer to the following section accordingly:

Run tests in parallel on BrowserStack App Infra

If you are using BrowserStack (App Automate) for your mobile device infra with Percy, then you can run multiple tests at the same time across various devices. This is called parallel testing. Parallel testing gives you the same benefits as running a multi-threaded application. More parallel tests speed up the time taken to complete a test suite.

BrowserStack App Automate plan supports running the number of parallel tests (5 during free trial). You can purchase more parallels as per your need. To learn more about parallel testing on Browserstack infra, visit here.

Supported parameters

App Percy client libraries retrieve additional details from the environment they are running in, including the branch name, commit SHA, GitHub Pull Request number, and more. You can modify certain aspects of App Percy’s behavior by configuring these environment variables within your CI environment:

Environment Variable Description
PERCY_BRANCH The branch in which the build is being executed. Default is the current git branch.
PERCY_PULL_REQUEST The pull request number to link with the build, if any.
PERCY_PARTIAL_BUILD Set to 1 to indicate the build is a partial build, and that it intentionally will be a subset of the snapshots from a full build.
PERCY_TMP_DIR Set an absolute path accessible locally where screenshots will be stored.
PERCY_COMMIT Set this to the Git commit SHA to ensure that visual tests and snapshots taken by Percy are correctly linked to a specific commit in the version control system.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle