Unit testing for Azure Service Bus Trigger Function App

Sairam Ganji 1 Reputation point
2022-12-07T11:37:59.667+00:00

Hi Team,

Just wondering how can we unit test the service bus trigger function App?

Thanks in Advance

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
700 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-12-08T07:06:43.437+00:00

    @Sairam Ganji Thanks for reaching out. In your test case you need to connect to the service bus using service bus SDK with primary/secondary key and send the test message to trigger your service bus trigger function. For your reference sharing the third party blog. Please review and modify the code/test it as per your business needs.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.