mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-03-25 09:25:47 +00:00
📖 Updated README: Comprehensive AI Testing Documentation
Enhanced testing section to showcase the robust AI test suite: New Testing Documentation: • Highlighted 8 comprehensive AI vision analysis tests • Added specific test mode examples (ai, advanced, basic, quick) • Detailed AI test coverage breakdown • Clear command examples for different testing scenarios AI Test Coverage Highlights: • One-step: Screenshot + AI analysis workflow • Two-step: Analyze existing images separately • Custom model specification and auto-detection • Error handling: Invalid models, missing files, malformed commands • Graceful degradation when Ollama/models unavailable Testing Commands: ./test_peekaboo.sh ai # AI tests only ./test_peekaboo.sh advanced # Multi-window, discovery, AI ./test_peekaboo.sh all # Comprehensive suite Perfect for developers wanting to validate AI functionality\! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
6c3e96f51f
commit
e3bc43b0d6
2 changed files with 36 additions and 8 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
44
README.md
44
README.md
|
|
@ -357,23 +357,51 @@ osascript peekaboo.scpt "Safari" "/tmp/debug.png" --verbose
|
|||
|
||||
## 🧪 **TESTING**
|
||||
|
||||
We've got you covered:
|
||||
We've got you covered with comprehensive testing:
|
||||
|
||||
```bash
|
||||
# Run the full test suite
|
||||
./test_screenshotter.sh
|
||||
./test_peekaboo.sh
|
||||
|
||||
# Test specific features
|
||||
./test_peekaboo.sh ai # AI vision analysis only
|
||||
./test_peekaboo.sh advanced # Multi-window, discovery, AI
|
||||
./test_peekaboo.sh basic # Core screenshot functionality
|
||||
./test_peekaboo.sh quick # Essential tests only
|
||||
|
||||
# Test and cleanup
|
||||
./test_screenshotter.sh --cleanup
|
||||
./test_peekaboo.sh all --cleanup
|
||||
```
|
||||
|
||||
Tests everything:
|
||||
**Complete Test Coverage:**
|
||||
- ✅ Basic screenshots with smart filenames
|
||||
- ✅ App resolution (names + bundle IDs)
|
||||
- ✅ Format support (PNG, JPG, PDF)
|
||||
- ✅ Error handling
|
||||
- ✅ Directory creation
|
||||
- ✅ File validation
|
||||
- ✅ Multi-window scenarios
|
||||
- ✅ Multi-window scenarios with descriptive names
|
||||
- ✅ App discovery and window enumeration
|
||||
- ✅ **AI vision analysis (8 comprehensive tests)**
|
||||
- One-step: Screenshot + AI analysis
|
||||
- Two-step: Analyze existing images
|
||||
- Model auto-detection and custom models
|
||||
- Error handling and edge cases
|
||||
- ✅ Enhanced error messaging
|
||||
- ✅ Performance and stress testing
|
||||
- ✅ Integration workflows
|
||||
- ✅ Compatibility with system apps
|
||||
|
||||
**AI Test Details:**
|
||||
```bash
|
||||
# Specific AI testing scenarios
|
||||
./test_peekaboo.sh ai
|
||||
```
|
||||
- ✅ One-step screenshot + analysis workflow
|
||||
- ✅ Custom model specification testing
|
||||
- ✅ Two-step analysis of existing images
|
||||
- ✅ Complex questions with special characters
|
||||
- ✅ Invalid model error handling
|
||||
- ✅ Missing file error handling
|
||||
- ✅ Malformed command validation
|
||||
- ✅ Graceful Ollama/model availability checks
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue