@chat-test-reporter/cli
v1.0.2
Published
Send automated test results to Google Chat via CLI
Maintainers
Readme
Chat Test Reporter
Chat Test Reporter is a CLI tool that sends your automated test results to Google Chat.
It's lightweight, works in any CI/CD pipeline, and supports multiple test runners like Vitest, Jest, or Mocha.
✅ Great for teams who want instant test feedback inside Google Chat.
⚙️ Compatible with GitHub Actions, GitLab CI, Bitbucket Pipelines, etc.
📦 Installation
npm i @chat-test-reporter/cli --save-dev- Create a .env file:
GOOGLE_CHAT_WEBHOOK=https://chat.googleapis.com/...- 🔧 Example Configurations your
package.json:
Vitest
"scripts": {
"test": "vitest run --reporter=json > test-results.json",
"ci:report": "chat-test-reporter"
}Jest
"scripts": {
"test": "jest --runInBand --ci --json > test-results.json",
"ci:report": "chat-test-reporter"
}- 🚀 Usage Run your tests and save the output to test-results.json:
npm run test- Send the summary to Google Chat:
npm run ci:report🛠 Works with
✅ Vitest
✅ Jest
✅ Mocha
✅ Any framework that supports JSON output
