mirror of
https://github.com/kirodotdev/Kiro.git
synced 2026-11-25 17:30:37 +08:00
- Add GitHub Actions workflows for issue triage, duplicate detection, and stale issue management - Add AWS Bedrock integration for AI-powered issue classification and duplicate detection - Add TypeScript scripts for issue automation including labeling, triaging, and closing workflows - Add comprehensive documentation for setup, implementation, and testing procedures - Add security fixes for prompt injection vulnerabilities in AI model interactions - Add local testing framework with Jest configuration and test utilities - Add rate limiting and retry utilities for GitHub API and AWS Bedrock calls - Add environment configuration examples and ESLint setup for TypeScript scripts - Add detailed testing results and completion status documentation - Implement automated duplicate detection using semantic similarity analysis - Implement stale issue closing with configurable timelines and grace periods - Implement issue classification and auto-labeling based on content analysis
1.4 KiB
1.4 KiB
Test Files
This directory contains all test files for the GitHub issue automation system.
Test Files
Unit Tests
- data_models.test.ts - Tests for label taxonomy and data models
Integration Tests
- test-local.ts - Local testing script for full automation workflow
- test-workflows.ts - Comprehensive workflow component testing
- test-prompt-injection.ts - Tests for prompt injection protection
- test-sanitization-integration.ts - Tests for input sanitization
Test Runner
- test.sh - Automated test setup and execution script
Running Tests
Quick Test (from scripts directory)
cd scripts
npm run test:local
Full Test Suite
cd scripts
npm test
Using Test Script
cd scripts
./test/test.sh
Individual Tests
cd scripts
npm run build
# Run specific test
node dist/test/test-local.js
node dist/test/test-workflows.js
node dist/test/test-prompt-injection.js
node dist/test/test-sanitization-integration.js
Test Results
See TEST_RESULTS.md for detailed test results and status.
Prerequisites
- Node.js 20+
- AWS credentials with Bedrock access
- Environment variables set (see
.env.example)
Documentation
For detailed testing documentation, see:
docs/TESTING_SUMMARY.md- Complete testing guidedocs/LOCAL_TESTING_QUICKSTART.md- Quick start guide.github/LOCAL_TESTING.md- Detailed local testing