{"id":30290776,"url":"https://github.com/patrickjaja/workoflow-tests","last_synced_at":"2025-08-16T23:55:27.583Z","repository":{"id":298554599,"uuid":"1000137568","full_name":"patrickjaja/workoflow-tests","owner":"patrickjaja","description":"AI Agent Prompt Testing (E2E)","archived":false,"fork":false,"pushed_at":"2025-06-11T17:29:19.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-11T19:11:04.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrickjaja.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-11T10:17:05.000Z","updated_at":"2025-06-11T17:29:22.000Z","dependencies_parsed_at":"2025-06-11T19:11:08.530Z","dependency_job_id":"cd7c5b55-edea-4c4d-bba7-0133451de723","html_url":"https://github.com/patrickjaja/workoflow-tests","commit_stats":null,"previous_names":["patrickjaja/workoflow-tests"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patrickjaja/workoflow-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickjaja%2Fworkoflow-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickjaja%2Fworkoflow-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickjaja%2Fworkoflow-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickjaja%2Fworkoflow-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickjaja","download_url":"https://codeload.github.com/patrickjaja/workoflow-tests/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickjaja%2Fworkoflow-tests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270786441,"owners_count":24644563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-16T23:55:24.655Z","updated_at":"2025-08-16T23:55:27.563Z","avatar_url":"https://github.com/patrickjaja.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# n8n Agent E2E Testing Suite\n\nThis repository contains an end-to-end testing suite for n8n webhook agents with semantic response validation using promptfoo.\n\n## Quick Start\n\n1. **Setup Environment**\n   ```bash\n   cp .env.example .env\n   # Edit .env with your Azure OpenAI credentials and n8n webhook URL\n   ```\n\n2. **Build Docker Container**\n   ```bash\n   npm run docker:build\n   # or\n   docker-compose build\n   ```\n\n3. **Run Tests**\n   ```bash\n   npm run test:e2e\n   # or\n   docker-compose up\n   ```\n\n## Features\n\n- 🎯 Semantic response validation using Azure OpenAI\n- 🐳 Docker containerization for consistent testing\n- 🌐 Multi-language support (German/English)\n- 📊 Web-based test result viewer\n- 🔄 CI/CD ready with GitHub Actions support\n- 📈 Performance monitoring and latency checks\n\n## Project Structure\n\n```\n.\n├── configs/              # Promptfoo configuration\n│   └── promptfoo.yaml   # Test cases and assertions\n├── scripts/             # Shell scripts\n│   └── shell.sh        # Container shell access\n├── test-results/        # Test output and reports\n├── docker-compose.yml   # Docker configuration\n├── Dockerfile.test      # Test container definition\n└── CLAUDE.md           # AI assistant guide\n```\n\n## Available Commands\n\nAll commands execute inside Docker containers:\n\n### Testing Commands\n- `npm run test:e2e` - Run full test suite\n- `npm run test:watch` - Run tests in watch mode\n- `npm run test:view` - Open test results viewer (port 8080)\n- `npm run test:filter` - Run specific tests by name\n- `npm run test:verbose` - Run tests with verbose output\n- `npm run test:dry-run` - Validate configuration without running tests\n- `npm run test:repeat` - Run tests multiple times\n- `npm run test:export` - Export test results to HTML\n\n### Docker Commands\n- `npm run docker:build` - Build Docker containers\n- `npm run docker:up` - Start containers in detached mode\n- `npm run docker:test` - Run test container interactively\n- `npm run docker:shell` - Access container shell\n- `npm run docker:logs` - View container logs\n- `npm run docker:down` - Stop containers\n- `npm run docker:clean` - Clean up containers and test results\n\n## Configuration\n\nEdit `.env` file to configure:\n- `N8N_WEBHOOK_URL` - Your n8n webhook endpoint\n- `AZURE_API_KEY` - Azure OpenAI API key\n- `SEMANTIC_THRESHOLD` - Similarity threshold (default: 0.85)\n- `TEST_TIMEOUT` - Test timeout in milliseconds\n\n## Viewing Results\n\nAfter running tests, view results at http://localhost:8080:\n```bash\nnpm run test:view  # Opens viewer on port 8080\n```\n\n## CI/CD Integration\n\nThe project includes GitHub Actions workflow for automated testing:\n- Located at `.github/workflows/e2e-tests.yml`\n- Runs on push and pull requests\n- Executes full test suite in Docker\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Docker build fails**\n   ```bash\n   npm run docker:clean\n   npm run docker:build\n   ```\n\n2. **Permission errors**\n   ```bash\n   chmod -R 777 test-results/\n   ```\n\n3. **Test timeouts**\n   - Increase `TEST_TIMEOUT` in `.env`\n   - Check n8n webhook connectivity\n\n4. **View detailed logs**\n   ```bash\n   npm run docker:logs\n   ```\n\nFor more detailed information, see [CLAUDE.md](CLAUDE.md) for AI assistant workflows and context.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjaja%2Fworkoflow-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickjaja%2Fworkoflow-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjaja%2Fworkoflow-tests/lists"}