Skip to content

test(tray): add system tray tests - #4221

Merged
ReenigneArcher merged 2 commits into
masterfrom
test/tray/add-system-tray-tests
Jul 30, 2026
Merged

test(tray): add system tray tests#4221
ReenigneArcher merged 2 commits into
masterfrom
test/tray/add-system-tray-tests

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Sep 1, 2025

Copy link
Copy Markdown
Member

Description

This PR intends to add tests for the system tray, and depends on #3818

It was originally to be included with 3818, but there are issues with the tests that need to be resolved in the different build environments and it was growing out of hand.

At the time of opening the PR, the tests succeed on Windows, but fail on Linux. Unknown status on macOS due to homebrew builds failing right now.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@ReenigneArcher
ReenigneArcher force-pushed the test/tray/add-system-tray-tests branch from 5ecfd6d to e2dbaec Compare September 1, 2025 15:38
@codecov

codecov Bot commented Sep 1, 2025

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@codecov

codecov Bot commented Sep 1, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 28.00%. Comparing base (3893c5b) to head (c26852e).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4221      +/-   ##
==========================================
+ Coverage   26.07%   28.00%   +1.93%     
==========================================
  Files         109      109              
  Lines       24528    24683     +155     
  Branches    10753    10887     +134     
==========================================
+ Hits         6395     6912     +517     
+ Misses      16877    15921     -956     
- Partials     1256     1850     +594     
Flag Coverage Δ
Archlinux 0.00% <0.00%> (ø)
FreeBSD-amd64 13.96% <100.00%> (+0.21%) ⬆️
Homebrew-macos-14 22.45% <100.00%> (+1.09%) ⬆️
Homebrew-macos-15 23.12% <100.00%> (+1.08%) ⬆️
Homebrew-macos-26 23.23% <100.00%> (+1.06%) ⬆️
Homebrew-ubuntu-24.04 13.58% <100.00%> (+0.23%) ⬆️
Linux-AppImage 13.31% <100.00%> (+0.65%) ⬆️
Windows-AMD64 17.29% <100.00%> (+0.92%) ⬆️
Windows-ARM64 14.94% <100.00%> (+0.75%) ⬆️
macOS-arm64 19.82% <100.00%> (?)
macOS-x86_64 20.54% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/system_tray.cpp 77.14% <100.00%> (+67.64%) ⬆️

... and 65 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3893c5b...c26852e. Read the comment docs.

@ReenigneArcher
ReenigneArcher force-pushed the test/tray/add-system-tray-tests branch from e2dbaec to 3121286 Compare September 1, 2025 16:17
@sonarqubecloud

sonarqubecloud Bot commented Sep 1, 2025

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher force-pushed the test/tray/add-system-tray-tests branch from 3121286 to d053212 Compare September 1, 2025 18:54
@LizardByte-bot

Copy link
Copy Markdown
Member

It looks like this PR has been idle for 90 days. If it's still something you're working on or would like to pursue, please leave a comment or update your branch. Otherwise, we'll be closing this PR in 10 days to reduce our backlog. Thanks!

@ReenigneArcher
ReenigneArcher force-pushed the test/tray/add-system-tray-tests branch 4 times, most recently from ac349a0 to ebb1a16 Compare July 29, 2026 21:28
@ReenigneArcher
ReenigneArcher force-pushed the test/tray/add-system-tray-tests branch from ebb1a16 to d422be5 Compare July 29, 2026 22:28
@ReenigneArcher
ReenigneArcher marked this pull request as ready for review July 29, 2026 22:28
Moves the primary tray icon into common packaging so `logo-sunshine.svg` is always copied into built web assets, and removes the Linux-specific duplicate install step. System tray icon path macros are consolidated to use shared SVG defaults, and tray tests now stage required icon assets in the test build directory and assert all icon files exist before running visual tray initialization.
@sonarqubecloud

Copy link
Copy Markdown

@ReenigneArcher ReenigneArcher added this to the code coverage milestone Jul 30, 2026
@ReenigneArcher
ReenigneArcher merged commit 0784774 into master Jul 30, 2026
69 checks passed
@ReenigneArcher
ReenigneArcher deleted the test/tray/add-system-tray-tests branch July 30, 2026 00:30
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