This sample 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
2nd-gen/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.