Skip to content

Add CI workflow and Modbus profile test utilities - #20

Merged
jkpe merged 10 commits into
mainfrom
tests/add-more-tests
Jul 29, 2026
Merged

Add CI workflow and Modbus profile test utilities#20
jkpe merged 10 commits into
mainfrom
tests/add-more-tests

Conversation

@jkpe

@jkpe jkpe commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

No description provided.

jkpe added 10 commits July 29, 2026 23:44
Configures GitHub Actions to run tests and verify Docker builds on pull
requests and pushes to main. Also adds integration test and fixture
generation scripts to package.json.
Adds a utility script to programmatically generate JSON test fixtures
from register maps. This ensures consistency between register
definitions
and the expected profile output snapshots.
Add various JSON fixtures for H1, H3, and KH series inverter Modbus
profiles to facilitate testing and validation.
Introduces a mock ModbusReader and helper functions to load, parse, and
utilize profile test fixtures for unit testing without requiring an
active network connection.
Includes server fixtures, autodetect test cases, and register encoding
helpers to facilitate integration testing of Modbus device detection.
@jkpe
jkpe marked this pull request as ready for review July 29, 2026 22:55
@jkpe
jkpe merged commit 64326aa into main Jul 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant