You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am asking this because SetupLuis is used in SimpleAlarmBotTests.cs, which is a method of LuisTestBase class. And the parameter to SetupLuis is SetupLuis<SimpleAlarmDialog>(luis, a => a.SetAlarm(null, null), 1.0, entityTitle, entityDate, entityTime);. So this is pretty much obvious that we are not sending the request to LUIS: Language Understanding Intelligent Service (beta) and the request and response is being mocked. Its like testing 2 + 2 = 4. Kindly explain.
The text was updated successfully, but these errors were encountered:
ranjan-2209
changed the title
https://github.com/Microsoft/BotBuilder/tree/master/CSharp/Tests/Microsoft.Bot.Sample.Tests
sample tests where response is coming from https://www.luis.ai/
Sep 14, 2016
Those tests are to validate that the alarm sample works properly, not to check anything about the LUIS service. It's good practice to mock external dependencies so that the unit tests can run quickly without non-deterministic failures due to network conditions, etc.
What are these test for https://github.com/Microsoft/BotBuilder/tree/master/CSharp/Tests/Microsoft.Bot.Sample.Tests?
To test Bot Framework, or
To test the bot that I have created.
I am asking this because
SetupLuis
is used inSimpleAlarmBotTests.cs
, which is a method ofLuisTestBase
class. And the parameter toSetupLuis
isSetupLuis<SimpleAlarmDialog>(luis, a => a.SetAlarm(null, null), 1.0, entityTitle, entityDate, entityTime);
. So this is pretty much obvious that we are not sending the request to LUIS: Language Understanding Intelligent Service (beta) and the request and response is being mocked. Its like testing 2 + 2 = 4. Kindly explain.The text was updated successfully, but these errors were encountered: