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 working on a Slack app for collecting Standups. And have two branches, main and production. And both branches are deployed and linked with our Slack as separate apps"BOT-Dev" and "BOT-PROD"
We are using two separate slash commands for both of the bots and need to add test cases for the Slash Command.
What are the suitable ways to add test cases to our slash commands file in the bolt app?
Please find the screenshots attached below and let me know if you need any additional details.
What type of issue is this? (place an x in one of the [ ])
bug
enhancement (feature request)
question
documentation related
example code related
testing related
discussion
Requirements (place an x in each of the [ ])
I've read and understood the Contributing guidelines and have done my best effort to follow them.
From this open issue (#638): currently, Bolt JS does not have any official testing support, but what you could do is use mocking within tests to mock the environments and payloads you need and verify the slash commands are working as expected.
You could find a way to mock the different development and production environments, verify that those are calling the correct slash commands, and then also run tests to verify those dev and prod slash commands are exhibiting expected behavior by verifying the payloads. While we don't have built-in Bolt JS test support, you can view our current unit tests for the Bolt JS framework to get inspiration for how you might be able to test via mimicking payloads that Slack might send.
Aside from the above, this issue (#383) includes some community discussion about testing Bolt JS apps that you might also find helpful! I hope this helps! 🎉
Hello @hello-ashleyintech
Thank you for taking the time to respond and share your opinions on this.
I will absolutely read through this and look into how we can include it in our Bolt App.
I appreciate your assistance in this matter.
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.
Description
I am working on a Slack app for collecting Standups. And have two branches,
main
andproduction
. And both branches are deployed and linked with our Slack as separate apps"BOT-Dev" and "BOT-PROD"We are using two separate slash commands for both of the bots and need to add test cases for the Slash Command.
What are the suitable ways to add test cases to our slash commands file in the bolt app?
Please find the screenshots attached below and let me know if you need any additional details.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version:
node version:
OS version(s):
Steps to reproduce:
Expected result:
What you expected to happen
Actual result:
What actually happened
Attachments:
Logs, screenshots, screencast, sample projects, funny gifs, etc.
The text was updated successfully, but these errors were encountered: