diff --git a/.DS_Store b/.DS_Store index 4cc3b48..8d47e32 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/README.md b/README.md index 8e90948..d3aab92 100644 --- a/README.md +++ b/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 ---