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
Please add some unit tests, I am unable to find any example anywhere. I created a python bot based on this template but not able to find any example of any unit test based on slack bolt.
The text was updated successfully, but these errors were encountered:
Hi @mudasirmirza! Thanks for submitting this request. Providing a sample testing setup has been something we've discussed in the past, however, there is some work to be done regarding creating a testing utility to accomplish this end.
In the meantime, you might find the conversation within this issue useful.
If it helps those who stumble on this in the future, this is an open-source Bolt app with a moderately sized test suite as an example to dig through.
We've taken the approach of keeping our core functionality in a separate module that doesn't depend on slack_bolt, letting us easily run unit tests without dealing with bolt trying to start a server or anything like that.
Then in app.py you can just import the module and use the Slack @decorated functions essentially as wrappers over your unit-testable business logic.
Please add some unit tests, I am unable to find any example anywhere. I created a python bot based on this template but not able to find any example of any unit test based on slack bolt.
The text was updated successfully, but these errors were encountered: