Skip to content

chore: First integration tests for Hue #1541

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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

dljsjr
Copy link
Member

@dljsjr dljsjr commented Jul 23, 2024

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

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

The next Lua Libs API release will have rudimentary support for testing LAN type edge drivers, so we're starting to write some integration tests for Philips Hue in advance of this.

The current state of the in-development Lua Libs supports basic TCP client/server REST-ful interactions, so we've started writing some tests to exercise that.

Summary of Completed Tests

WIP

Copy link

Copy link

github-actions bot commented Jul 23, 2024

Test Results

   61 files    378 suites   0s ⏱️
1 821 tests 1 821 ✅ 0 💤 0 ❌
3 169 runs  3 169 ✅ 0 💤 0 ❌

Results for commit e47e0e8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 23, 2024

File Coverage
All files NaN%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against e47e0e8

Copy link
Contributor

@greens greens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing copyright on a lot of these

dljsjr added 5 commits August 8, 2024 13:07
The next Lua Libs API release will have rudimentary support for testing
LAN type edge drivers, so we're starting to write some integration tests
for Philips Hue in advance of this.

The current state of the in-development Lua Libs supports basic TCP client/server
REST-ful interactions, so we've started writing some tests to exercise that.
dkjson will return a numerical value in the 2nd return position
on success, whereas the on-hub json decode only uses that for errors.

So places where we check for the presence of an error without checking for
a nil first return will be false positives.
@dljsjr dljsjr force-pushed the chore/philips-hue-integration-tests branch from c481a86 to f60dc18 Compare August 8, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants