1.6 KiB
1.6 KiB
HereIAm Tests
This directory contains all test scripts for the HereIAm application.
Test Scripts
Python Unit Tests
test_config.py- Tests configuration managementtest_dialog.py- Tests options dialog functionalitytest_logging.py- Tests logging configurationtest_restart.py- Tests application restart functionality
Mouse Movement & PyAutoGUI Tests
test_pyautogui_permissions.py- Comprehensive PyAutoGUI permissions and functionality testtest_mouse_behavior.py- Tests basic mouse movement monitoring behaviortest_original_logic.py- Tests the original mouse.py script logictest_enhanced_mouse.py- Tests enhanced mouse movement with additional featurestest_fixed_mouse_logic.py- Tests the fixed mouse movement logictest_updated_logic.py- Tests updated mouse movement detection logic
UI & Integration Tests
test_visual_dialog.py- Visual test for options dialogtest_startup.py- Tests launch agent functionality
Debug Tools
debug_mouse_detection.py- Debug tool for mouse movement detection issues
Shell Scripts
test_app.sh- Tests the built macOS application bundle
Running Tests
Python Tests
Run individual test files:
cd tests
python3 test_config.py
python3 test_dialog.py
python3 test_logging.py
python3 test_restart.py
App Bundle Test
Test the built application:
cd tests
./test_app.sh
Note: Make sure to build the application first by running ../build_app.sh from the tests directory.
Test Requirements
- Python 3.x
- PyQt5
- Built HereIAm.app (for app bundle tests)
- macOS (for app bundle tests)