test: add comprehensive bash test suite

- Implement tests/run_tests.sh with mocked environment
- Cover color conversion, multi-format output, and config loading
- Verify clipboard and notification integrations via mocks
- Document testing procedure in README.md
This commit is contained in:
2026-04-28 22:31:57 -04:00
parent 344fc140dc
commit 37a5497336
2 changed files with 161 additions and 0 deletions
+12
View File
@@ -102,6 +102,18 @@ copy = true # copy result to clipboard
notify = true # show desktop notification with the copied value
```
## 🧪 Testing
The project includes a comprehensive test suite that verifies color conversion, configuration loading, and system integrations (clipboard/notifications) using mocks.
To run the tests:
```bash
./tests/run_tests.sh
```
The test script creates a temporary isolated environment, so it won't affect your system configuration or active clipboard.
## 🤝 Credits
The `wl-colorpicker-plasma` integration is based on the original work by [SASUPERNOVA](https://github.com/SASUPERNOVA/wl-colorpicker-plasma).