Skip to content

Matter Thermostat: Improve test coverage and fix test cases for lower lua libs #2083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

nickolas-deboom
Copy link
Contributor

@nickolas-deboom nickolas-deboom commented Apr 18, 2025

Check all that apply

Type of Change

  • WWST Certification Request
    • If this is your first time contributing code:
      • I have reviewed the README.md file
      • I have reviewed the CODE_OF_CONDUCT.md file
      • I have signed the CLA
    • I plan on entering a WWST Certification Request or have entered a request through the WWST Certification console at developer.smartthings.com
  • Bug fix
  • New feature
  • Refactor
  • Test case update

Checklist

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have verified my changes by testing with a device or have communicated a plan for testing
  • I am adding new behavior, such as adding a sub-driver, and have added and run new unit tests to cover the new behavior

Description of Change

Add backwards compatibility for matter thermostat test cases down to lua libs version v10 and improve overall test coverage.

Note that to run these tests against lower versions, any capabilities that are not available in that version of the lua libs would need to be manually added to prevent test failures.

Summary of Completed Tests

@nickolas-deboom nickolas-deboom changed the title Matter thermostat: improve test coverage and fix test cases for lower lua libs Matter Thermostat: Improve test coverage and fix test cases for lower lua libs Apr 18, 2025
Copy link

github-actions bot commented Apr 18, 2025

Test Results

   66 files  ± 0    424 suites  +1   0s ⏱️ ±0s
2 190 tests +15  2 190 ✅ +15  0 💤 ±0  0 ❌ ±0 
3 722 runs  +22  3 722 ✅ +22  0 💤 ±0  0 ❌ ±0 

Results for commit 881effe. ± Comparison against base commit acb5c23.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Apr 18, 2025

File Coverage
All files 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/embedded-cluster-utils.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/matter-thermostat/src/init.lua 97%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 881effe

Make tests backwards compatible down to lua libs api v10 and add
test coverage for the following:
* batteryLevel attribute handler
* air purifier and air conditioner fan mode
* water heater on lower lua libs versions
* setpoint capabilities cached as Fahrenheit values
@nickolas-deboom nickolas-deboom force-pushed the matter-thermostat-fix-test-cases-for-lower-lua-libs branch from 26a0ba9 to a7cf557 Compare April 18, 2025 19:35
Copy link

@nickolas-deboom nickolas-deboom force-pushed the matter-thermostat-fix-test-cases-for-lower-lua-libs branch from a899f9d to 881effe Compare April 22, 2025 19:42
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