-
Notifications
You must be signed in to change notification settings - Fork 0
Add parameter validation E2E tests for device-profiler #369
Copy link
Copy link
Open
Labels
priority:lowLow priority taskLow priority taskscope:device-profilerIssues related to the device-profiler packageIssues related to the device-profiler packagescope:testingIssues related to testing infrastructureIssues related to testing infrastructuretestingTesting improvements and additionsTesting improvements and additionstype:testingTesting improvements or additionsTesting improvements or additionsvalidationInput validation and configuration checksInput validation and configuration checks
Metadata
Metadata
Assignees
Labels
priority:lowLow priority taskLow priority taskscope:device-profilerIssues related to the device-profiler packageIssues related to the device-profiler packagescope:testingIssues related to testing infrastructureIssues related to testing infrastructuretestingTesting improvements and additionsTesting improvements and additionstype:testingTesting improvements or additionsTesting improvements or additionsvalidationInput validation and configuration checksInput validation and configuration checks
Description
Add E2E test coverage for device-profiler parameter boundary conditions and validation.
Context
PR #366 adds device-profiler E2E tests covering happy paths and basic error cases. However, parameter validation at boundaries is not comprehensively tested in E2E (though unit tests provide coverage).
Test Scenarios
Address Range Validation
--start > --end(invalid range)Batch Size Validation
--batch 0(invalid)--batch -1(negative)Slave ID Validation
--slave-id 0(below minimum of 1)--slave-id 248(above maximum of 247)Large Address Ranges
Maximum Register Address
Implementation
Add tests to
tests/e2e/tests/05-device-profiler.bats:assert_failurefor invalid parametersassert_output_containsto verify error messagesAcceptance Criteria
Related
packages/device-profiler/src/program.test.ts