Skip to content

firstled_switch: Updated min_api_version to 20 for out of date tests#3051

Merged
aleclorimer merged 1 commit into
mainfrom
firstled-test-min_api_version-fix
Jun 25, 2026
Merged

firstled_switch: Updated min_api_version to 20 for out of date tests#3051
aleclorimer merged 1 commit into
mainfrom
firstled-test-min_api_version-fix

Conversation

@aleclorimer

@aleclorimer aleclorimer commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Update the tests to min_api_version = 20 from 19. Resolves 14 failing tests in version 60.
Related PR: #2971

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

Channel deleted.

@github-actions

Copy link
Copy Markdown

Test Results

   73 files    517 suites   0s ⏱️
2 952 tests 2 952 ✅ 0 💤 0 ❌
4 849 runs  4 849 ✅ 0 💤 0 ❌

Results for commit 2fe8e39.

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against dae7b10

@cjswedes

Copy link
Copy Markdown
Contributor

What exactly in v19 is an issue for these tests?

@aleclorimer

aleclorimer commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

What exactly in v19 is an issue for these tests?

In V19 the numberOfButtons message isn't automatically handled. I was able to fix these tests by adding

test.socket.capability:__expect_send(mock_parent:generate_test_message("main",
  capabilities.button.numberOfButtons({ value = 1 }, { visibility = { displayed = false } })))
test.socket.capability:__expect_send(mock_parent:generate_test_message("main",
  capabilities.button.supportedButtonValues({ "pushed" }, { visibility = { displayed = false } })))

I suppose this is an area I should duplicate the tests and fork on API version, but since these changes were merged and tested against 61 (v20) I think it'd be fine to just update the broken tests to 20.

@aleclorimer aleclorimer force-pushed the firstled-test-min_api_version-fix branch from 2fe8e39 to dae7b10 Compare June 25, 2026 19:48
@aleclorimer aleclorimer merged commit 8935c5c into main Jun 25, 2026
5 of 9 checks passed
@aleclorimer aleclorimer deleted the firstled-test-min_api_version-fix branch June 25, 2026 19:50
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.

2 participants