This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
Unit Testing with Java SDK #1462
Labels
feature-request
A request for new functionality or an enhancement to an existing one.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Use this query to search for the most popular feature requests.
Is your feature request related to a problem? Please describe.
I have been trying to figure out a way to write unit tests for my bot's dialogs made with the Java SDK, but haven't had much luck. I have been going through the documentation https://docs.microsoft.com/en-us/azure/bot-service/unit-test-bots?view=azure-bot-service-4.0&tabs=javascript. and the sample bots: https://github.com/microsoft/BotBuilder-Samples. I haven't been able to find any examples of unit testing the bot SDK in Java.
Describe the solution you'd like
Ideally I would like to have a DialogTestClient() and similar to the ones that exist in Javascript and C#: https://docs.microsoft.com/en-us/azure/bot-service/unit-test-bots?view=azure-bot-service-4.0&tabs=javascript. Something that would allow me to write tests for dialogs in isolation outside of a bot and without having to deploy your code to a web service.
Describe alternatives you've considered
I have looked into potentially developing a spinning up an instance of the bot and writing tests against the api responses we get from it, which feels separate from unit testing.
Additional context
The text was updated successfully, but these errors were encountered: