Integrations with any CI platform

Use the FinalRun CLI to run your tests in the cloud from any CI platform.

Prerequisites

Required Components

  • FinalRun API Key - Obtain from your FinalRun dashboard

  • App Name - The exact app name as it appears in your FinalRun dashboard (Apps section)

  • CI Environment - Any platform supporting shell commands

circle-info

Note: App names are case-sensitive and must match exactly as shown in the FinalRun dashboard.

Platform Requirements

Android

  • Your APK must be x86-compatible

  • Built with Gradle: ./gradlew assembleDebug

iOS (Future Support)

  • Provide a path that points to an x86-compatible *.app simulator build directory

2. Run Flows in the cloud

1. Install the Finalrun CLI

First, ensure that the Finalrun CLI is installed on your CI machine:

2. Run the Finalrun execute command

FinalRun CLI Exit Codes

The finalrun-cli returns standard POSIX exit codes to indicate execution status, making it suitable for CI/CD integration and automated workflows.

Exit Code Reference

Code

Status

Description

Common Scenarios

0

Success

All operations completed successfully

• All tests passed

• No test suites configured (nothing to fail)

1

Test Failure

One or more tests failed

• Test cases failed during execution

• Test execution was aborted by user/system

2

System Error

Configuration or execution error

• API communication failure

• Test execution timeout

• Unknown test status

• Failed to create test run

Last updated