homebridge-shelly-blu-trv 1.0.0 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -0
  2. package/package.json +3 -1
package/README.md CHANGED
@@ -82,6 +82,21 @@ To test the plugin locally in a running Homebridge instance:
82
82
 
83
83
  To test in a development Homebridge container, you can mount the packed tarball or install from the working directory with `npm i -g` after `npm run build`.
84
84
 
85
+ ### E2E (fake gateway) tests
86
+
87
+ We include a simple fake Shelly BLU gateway and an E2E runner to validate discovery and polling locally:
88
+
89
+ - Start the fake gateway + headless Homebridge locally: `npm run e2e` (the script builds the project and runs the fake gateway + Homebridge, it times out after ~60s if discovery/polling isn't observed).
90
+ - The repository also includes a GitHub Actions workflow `.github/workflows/e2e.yml` that runs the same test in CI.
91
+
92
+ ### Coverage check
93
+
94
+ To ensure coverage is sufficient:
95
+
96
+ - Run tests with coverage: `npm test`
97
+ - Check coverage threshold (lines): `npm run check-coverage` (configured to require at least 80% lines by default, set `COVERAGE_THRESHOLD` env to override)
98
+
99
+
85
100
  ## Publishing
86
101
 
87
102
  Automatic publishing is configured to run on new GitHub releases (see `.github/workflows/publish.yml`).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-shelly-blu-trv",
3
3
  "displayName": "Shelly BLU TRV",
4
- "version": "1.0.0",
4
+ "version": "1.0.6",
5
5
  "description": "Homebridge plugin for Shelly BLU TRV thermostats via Shelly BLU Gateway Gen3",
6
6
  "license": "MIT",
7
7
  "author": "agiplv",
@@ -39,6 +39,8 @@
39
39
  "test": "vitest run --coverage",
40
40
  "test:watch": "vitest",
41
41
  "lint": "eslint . --ext .ts",
42
+ "e2e": "node scripts/run-e2e.js",
43
+ "check-coverage": "node scripts/check-coverage.js",
42
44
  "release:patch": "npm version patch -m \"chore(release): %s\" && git push --follow-tags",
43
45
  "semantic-release": "semantic-release"
44
46
  },