This quickstart demonstrates how to trigger a function in response to the completion of a test matrix in Firebase Test Lab.
- Clone or download this repo and open the
quickstarts/test-complete
directory. - You must have the Firebase CLI installed. If you don't have it install it
with
npm install -g firebase-tools
and then configure it withfirebase login
. - Configure the CLI locally by using
firebase use --add
and select your project in the list. - Install Cloud Functions dependencies locally by running:
cd functions; npm install; cd -
- Deploy your function using
firebase deploy --only functions
- Navigate to the Test Lab section of the Firebase Console and start a test.
- Once the test finishes running, view the functions logs for your project, and check that the test run status was logged.
To see how to post to Slack instead of just console.log
-ing, check out
this sample.