This comprehensive guide will help you effectively test the Meta-Scraper extension to ensure all features are working correctly.
- Testing Installation Methods
- Testing with Sample Images
- Feature Testing Checklist
- Troubleshooting
- Advanced Testing
- Reporting Issues
- Open VS Code
- Press
Ctrl+Shift+X(orCmd+Shift+Xon Mac) to open Extensions - Click the "..." menu in the top-right corner
- Select "Install from VSIX..."
- Navigate to and select
metascraper-0.0.1.vsix - Restart VS Code after installation
- Open the project in VS Code:
code --new-window . - Press
F5or go to Run > Start Debugging - This launches an "Extension Development Host" window
- Test your extension in this development window
- Changes to code require restarting the debugging session
- Copy images into the
test-imagedirectory - Right-click on an image and select "View Image Metadata"
- Check what metadata exists in the image
- Right-click again and select "Clean Image Metadata"
- View metadata again to verify cleaning was successful
We've included a script that adds artificial test metadata to any image, perfect for testing the cleaning functionality:
# First install dependencies
npm install
# Then run the script on any image
node test-image/add-test-metadata.js test-image/your-image.jpgThe script adds:
- GPS coordinates
- Camera information
- Creation timestamps
- Copyright details
- Author information
Use this checklist to verify all extension features are working properly:
| Feature | Test Steps | Expected Result | Status |
|---|---|---|---|
| View Metadata | Right-click image → "View Image Metadata" | JSON metadata displayed in new document | ⬜ |
| Clean Metadata | Right-click image → "Clean Image Metadata" | Progress notification → Success message | ⬜ |
| Verify Cleaning | View metadata after cleaning | Most/all metadata fields removed | ⬜ |
| Image Integrity | Open image after cleaning | Image appears identical to original | ⬜ |
| Error: Non-Image | Right-click non-image file → try commands | Proper error message shown | ⬜ |
| Error: Read-Only | Test with read-only image | Graceful error handling | ⬜ |
| Large Images | Test with high-resolution image | Successfully processes without timeout | ⬜ |
If you encounter issues during testing:
-
Command not appearing in context menu
- Ensure the extension is properly installed
- Verify you're right-clicking on a supported image format
- Try reloading the VS Code window
-
Metadata not fully removed
- Some specialized file formats may retain certain metadata
- Check if the file is locked by another application
- Try saving the image to a new location first
-
Performance issues with large files
- Processing very large images may take longer
- Ensure your system has sufficient resources available
For more thorough testing, try these advanced scenarios:
- Test with multiple image formats (JPG, PNG, GIF, TIFF, WebP)
- Test with unusually large image files (20MB+)
- Test with images containing extensive metadata
- Test the extension while other resource-intensive operations are running
- Test with images in read-only locations or with restricted permissions
If you encounter bugs or have feature suggestions:
- Check existing issues on GitHub to see if it's already reported
- Create a new issue with:
- A clear descriptive title
- Detailed steps to reproduce
- Expected vs. actual behavior
- VS Code version and OS information
- Screenshots or logs if available
Thank you for helping test Meta-Scraper!