Skip to content

feat: Add forceEnableAll to Capabilities#4184

Merged
jamesarich merged 1 commit intomainfrom
feat/debug-capabilities
Jan 11, 2026
Merged

feat: Add forceEnableAll to Capabilities#4184
jamesarich merged 1 commit intomainfrom
feat/debug-capabilities

Conversation

@jamesarich
Copy link
Collaborator

Adds a forceEnableAll parameter to the Capabilities class, which defaults to the DEBUG build config flag. When true, all capability checks will return true, regardless of the firmware version.

This simplifies development and testing of new features that depend on firmware capabilities, as they can be enabled in debug builds without needing a specific firmware version.

The implementation is refactored to use a shared isSupported helper function, and corresponding tests are added to verify the new forceEnableAll behavior.

Adds a `forceEnableAll` parameter to the `Capabilities` class, which defaults to the `DEBUG` build config flag. When `true`, all capability checks will return `true`, regardless of the firmware version.

This simplifies development and testing of new features that depend on firmware capabilities, as they can be enabled in debug builds without needing a specific firmware version.

The implementation is refactored to use a shared `isSupported` helper function, and corresponding tests are added to verify the new `forceEnableAll` behavior.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions bot added the enhancement New feature or request label Jan 11, 2026
@jamesarich jamesarich enabled auto-merge January 11, 2026 01:42
@codecov
Copy link

codecov bot commented Jan 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (75d8c0b) to head (06fbaac).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4184   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines         23      23           
  Branches       7       7           
=====================================
  Misses        23      23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamesarich jamesarich added this pull request to the merge queue Jan 11, 2026
Merged via the queue into main with commit c5c7c2b Jan 11, 2026
8 checks passed
@jamesarich jamesarich deleted the feat/debug-capabilities branch January 11, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant