mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-27 15:07:41 +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**
|
## 🧪 **TESTING**
|
||||||
|
|
||||||
We've got you covered:
|
We've got you covered with comprehensive testing:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Run the full test suite
|
# 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 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)
|
- ✅ App resolution (names + bundle IDs)
|
||||||
- ✅ Format support (PNG, JPG, PDF)
|
- ✅ Format support (PNG, JPG, PDF)
|
||||||
- ✅ Error handling
|
- ✅ Multi-window scenarios with descriptive names
|
||||||
- ✅ Directory creation
|
- ✅ App discovery and window enumeration
|
||||||
- ✅ File validation
|
- ✅ **AI vision analysis (8 comprehensive tests)**
|
||||||
- ✅ Multi-window scenarios
|
- 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