Background
Currently, E2E tests for discover filters use the default test fixture which may have a single baud rate/parity configuration. To fully validate that filters correctly reduce the search space, we should test against devices with known configurations.
Proposal
Create a dedicated emulator fixture with multiple known configurations:
- Device 1: ID=1, 9600 baud, none parity
- Device 2: ID=2, 19200 baud, even parity
- Device 3: ID=3, 9600 baud, odd parity
This would allow E2E tests to verify:
--baud-rate 9600 finds only devices 1 and 3
--parity even finds only device 2
--id 1-2 --baud-rate 9600 finds only device 1
- Combined filters correctly reduce combinations
Benefits
- More robust E2E validation
- Documents expected behavior
- Catches regressions in filter logic
Related
PR #332 - discover command filters
Background
Currently, E2E tests for discover filters use the default test fixture which may have a single baud rate/parity configuration. To fully validate that filters correctly reduce the search space, we should test against devices with known configurations.
Proposal
Create a dedicated emulator fixture with multiple known configurations:
This would allow E2E tests to verify:
--baud-rate 9600finds only devices 1 and 3--parity evenfinds only device 2--id 1-2 --baud-rate 9600finds only device 1Benefits
Related
PR #332 - discover command filters