To trigger aFirebase Test Labfunction, define a handler
for the test matrix completion event. In this example, the function
triggers on test completion, retrieves the test matrix data from
the CloudEvent object, and sends
the corresponding test results to a Slack channel:
Test matrices may be created from different sources or workflows. It is
therefore often desirable to create functions that perform different actions
based on the source or other important context of the test. To help with this,gcloudallows you to pass arbitrary information when starting a test that can
be accessed later in your function. For example:
gcloud beta firebase test android run \
--app=path/to/app.apk \
--client-details testType=pr,link=<path/to/pull-request>
And then to access the information in your function:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-09 UTC."],[],[]]