Skip to content

markhughes321/karate-slack-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karate DSL Cucumber Reports Integration with Slack

Streamline your test feedback loop by integrating Karate DSL Cucumber reports with your Slack channel.

image

📌 Description

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.

🛠️ Prerequisites

  • Maven (for running the Karate tests)
  • Slack app with necessary permissions and a dedicated channel
  • npm modules: fs, axios, path, and dotenv

🚀 Setup and Configuration

  1. Dependencies: Ensure Maven is installed.
  2. Slack Setup:
    • Create a Slack App
    • Add the OAuth Scopes chat:write and files:write
    • Install the App to your Slack channel
  3. Environment Setup:
    • Install the required npm modules.
    • Set up a .env file with your Bot User OAuth Token (SLACK_TOKEN) and channelID (SLACK_CHANNEL). See example.env for reference.

🏃‍♂️ Running the Project

  1. Clone the project directory in your terminal.
git clone https://github.com/markhughes321/karate-slack-integration
  1. Install the projects dependencies.
npm install
  1. Execute the Karate tests and send the results to Slack.
npm run karate:slack

📚 Documentation

✨ Customization

The project is designed to be adaptable. Modify configurations, test scenarios, or Slack message formats as per your needs.

🤝 Contributions and Feedback

Your contributions and feedback are always welcome! Feel free to raise issues or create pull requests.

📜 License

This project is licensed under the MIT License - see the License.md for more info.

Releases

Packages

Used by

Contributors

Languages