Giter Club home page Giter Club logo

Comments (6)

yaron-idan avatar yaron-idan commented on August 15, 2024 1

Sure, I've created a gist with all of the required files, you can just paste them over the botkit boilerplate generated by yeoman.
The files starting with create... should be in the features folder and the files starting with test... should be in the tests folder.

EDIT - the link to the gist is - https://gist.github.com/yaron-idan/e85e9c9fcc1615138bd9ad866115b742

from botkit-mock.

ihorrusinko avatar ihorrusinko commented on August 15, 2024 1

hey @yaron-idan,
i've checked you gist, thanks - great work!
i found that you include dialog as part of your config file bot.js, so when you try to test single file you pass controller as dependency without dialog itself.

take a look here i've provided super simple example how to make your tests working

from botkit-mock.

yaron-idan avatar yaron-idan commented on August 15, 2024 1

Whoa! This is really great. I was thinking there should probably be a way to load the controller as it's configured in bot.js, because my understanding of the botkit docs led me to believe that's where I should be configuring my dialogs.
However, this can totally work in the meantime and allow me to create test cases for the dialog I'm currently building, thanks alot!

from botkit-mock.

ihorrusinko avatar ihorrusinko commented on August 15, 2024

hey @yaron-idan,
did you test that dialog online with connected slack bot?

from botkit-mock.

yaron-idan avatar yaron-idan commented on August 15, 2024

Hey @ihorrusinko,
Yep, the dialog behaves as expected when I test it online.

from botkit-mock.

ihorrusinko avatar ihorrusinko commented on August 15, 2024

from botkit-mock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.