Replies: 1 comment
-
We have integration tests you can look at here : https://github.com/Azure/azure-functions-sql-extension/tree/main/test/Integration These validate the sample functions - e.g. https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/samples-csharp
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am currently working on a project which contains multiple Azure functions and I am wondering if there is a way to Unit test the following Azure functions:
A Function with a Blob Storage trigger, this function gets triggered whenever a blob gets uploaded or updated. The output I'd like to test is if the function has added a row to a table in my MSSQL database.
A Function with a SQL Binding as a trigger, this function gets triggered whenever a row gets inserted in the previously mentioned table. I'd like to test if the function has added a message to a queue in my Storage Account.
A Function that gets triggered by a message in a specific queue, the output I'd like to test is if this function has placed a message in another queue (Storage Account).
The issue I am facing is that I don't know how to write unit test for these specifc Azure Functions with their triggers and outputs.
Beta Was this translation helpful? Give feedback.
All reactions