botframework-sdk
botframework-sdk copied to clipboard
Nodejs automated tests
Hi, is it currently possible to do automated tests on a bot? I.e. passing a string to a bot and inspecting the result, like done in the TextBot tests?
bot.processMessage({ text: 'hello' }, function (err, reply) {
assert(reply && reply.text == 'Hello World');
done();
});
Yes... look at the updated mocha tests. You just need a way to pass the ConsoleConnector into your bot so you may have to export a test function that your test harness can call to initialize the bot with a different connector.
Thank you very much