Add GPIO output timing and timer ISR tests

Co-authored-by: pmarchini <49943249+pmarchini@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-24 22:36:27 +00:00
parent 531971fcf9
commit 1786c41b15
3 changed files with 200 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ This guide provides instructions for running and extending the unit tests for th
## Test Coverage Summary
The unit test suite covers 16 test cases across the following categories:
The unit test suite covers 19 test cases across the following categories:
### 1. Dimmer Creation (2 tests)
- Creating a single dimmer instance
@@ -34,9 +34,15 @@ The unit test suite covers 16 test cases across the following categories:
### 6. Multiple Dimmers (1 test)
- Independent operation of multiple dimmers
### 7. Integration (2 tests)
### 7. GPIO and Timer ISR (5 tests)
- GPIO output timing after zero-crossing events
- Pulse width timing on GPIO output
- Dimmer response to zero-crossing interrupts
- Multiple dimmers controlling GPIO pins independently
- Timer ISR respecting dimmer state changes (ON/OFF)
### 8. Integration (1 test)
- State changes affecting power reporting
- Complete workflow validation
## Prerequisites