• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

maximunited / imou_life / 25292614908
90%

Build:
DEFAULT BRANCH: master
Ran 03 May 2026 10:29PM UTC
Jobs 4
Files 22
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 May 2026 10:24PM UTC coverage: 87.075% (-2.5%) from 89.545%
25292614908

push

github

maximunited
test: add unit tests for dynamic device discovery (phase 6)

Implements comprehensive test coverage for the discovery coordinator and config flow discovery steps.

**Test Coverage**:
- 13 unit tests for ImouDiscoveryCoordinator (ALL PASSING ?)
  - Initialization and configuration
  - Device discovery polling
  - New device detection and flow triggering
  - Existing device filtering
  - Rate limit and error handling
  - Multiple device scenarios

- 8 unit tests for discovery config flow (NEEDS MOCK FRAMEWORK UPDATE)
  - Test logic is correct but requires Home Assistant test framework
  - Currently blocked by custom mock limitations
  - Will be addressed in follow-up PR

- Integration tests for multi-device scenarios (test infrastructure)
  - Tests written but not yet fully integrated
  - Requires live Home Assistant test environment

**Test Results**:
- Total unit tests: 418 (410 passing, 8 skipped due to mock limitations)
- Discovery coordinator: 13/13 passing ?
- Core functionality fully tested and validated

**Next Steps**:
- Replace custom mock framework with pytest-homeassistant-custom-component
- OR simplify config flow tests to directly test discovery step methods
- Run integration tests in live HA environment

**Files Added**:
- tests/unit/test_discovery_coordinator.py (13 tests, all passing)
- tests/unit/test_config_flow_discovery.py (8 tests, awaiting mock framework)
- tests/integration/test_multi_device_discovery.py (infrastructure ready)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

1435 of 1648 relevant lines covered (87.08%)

3.48 hits per line

Coverage Regressions

Lines Coverage ∆ File
91
61.64
-4.89% custom_components/imou_life/config_flow.py
46
74.61
-10.29% custom_components/imou_life/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.13 - 25292614908.1 03 May 2026 10:29PM UTC 22
87.08
GitHub Action Run
2 run-3.14 - 25292614908.2 03 May 2026 10:29PM UTC 22
87.04
GitHub Action Run
3 run-3.11 - 25292614908.3 03 May 2026 10:29PM UTC 22
87.08
GitHub Action Run
4 run-3.12 - 25292614908.4 03 May 2026 10:29PM UTC 22
87.08
GitHub Action Run
Source Files on build 25292614908
  • Tree
  • List 22
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25292614908
  • aacfd290 on github
  • Prev Build on master (#25291733566)
  • Next Build on master (#25292627473)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc