This quickstart demonstrates how to run unit tests on Cloud Functions (2nd gen).
- Clone or download this repo and open the
2nd-gen/test-functions-mocha
directory. - Install Cloud Functions dependencies locally by running:
cd functions; npm install; cd -
- Run your unit test with
npm test
.
Write your own functions using a testing-framework that best fits your use case.