Feature - an SDK to improve testing experience #515
Labels
enhancement
P2
tests
Make it easier for users to test their Node.js functions
v4 model 🚀
Related to the new V4 programming model
Milestone
There are some challenges that exist today when testing Node.js Azure Functions, especially when using TypeScript. It might be useful to publish a library/SDK to help with testing.
Unit testing
When writing unit tests, we need to create mocks for context, request, response, logger, etc. This is especially difficult in TypeScript because the mocks must provide all properties/functions to satisfy the interfaces even if they're not being used.
Proposal: SDK to provide mock objects for common types used in functions.
Integration / end-to-end testing
When writing E2E tests, it would be great to be able to launch Azure Functions Core Tools and test the app by making HTTP requests, sending queue messages, etc.
Proposal: SDK to provide a Puppeteer-like API to programmatically launch and manage Core Tools:
Related: #120, #295
The text was updated successfully, but these errors were encountered: