Streamline your test feedback loop by integrating Karate DSL Cucumber reports with your Slack channel.
In the fast-paced world of agile development, instant feedback is paramount. This project serves as a bridge, ensuring your team is immediately informed by sending Karate DSL Cucumber reports straight to your designated Slack channel.
- Maven (for running the Karate tests)
- Slack app with necessary permissions and a dedicated channel
- npm modules:
fs,axios,path, anddotenv
- Dependencies: Ensure Maven is installed.
- Slack Setup:
- Create a Slack App
- Add the OAuth Scopes chat:write and files:write
- Install the App to your Slack channel
- Environment Setup:
- Install the required npm modules.
- Set up a
.envfile with your Bot User OAuth Token (SLACK_TOKEN) and channelID (SLACK_CHANNEL). See example.env for reference.
- Clone the project directory in your terminal.
git clone https://github.com/markhughes321/karate-slack-integration- Install the projects dependencies.
npm install- Execute the Karate tests and send the results to Slack.
npm run karate:slack- Dive into the Karate API Official Documentation
- Explore the Slack API for further insights.
The project is designed to be adaptable. Modify configurations, test scenarios, or Slack message formats as per your needs.
Your contributions and feedback are always welcome! Feel free to raise issues or create pull requests.
This project is licensed under the MIT License - see the License.md for more info.