Skip to content

Conversation

@ReenigneArcher
Copy link
Member

@ReenigneArcher ReenigneArcher commented Dec 25, 2025

Description

This PR adds screenshots to tests. The goal is to be able to easily review what the tray icon looks like in different states.

TODO:

  • fix sonar warnings
  • post images in PR comment and/or github step summary
    • secondary workflow to:
      • download artifacts from first job
      • publish images to a screenshot branch
      • comment on PR
        • compare master branch images to PR images, make obvious if images are mismatched (need to remove date/time for reliable comparison)
  • specific tray region for screenshots
  • capture more states/events of tray
  • minimize all windows before tests (on windows)
  • use gnome/default DE on linux?
  • ensure icons are actually used in our tests
  • improve test coverage

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

@codecov
Copy link

codecov bot commented Dec 25, 2025

Codecov Report

❌ Patch coverage is 45.45455% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.27%. Comparing base (09c5784) to head (f4e3034).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/tray_darwin.m 0.00% 17 Missing ⚠️
src/tray_linux.c 90.90% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
- Coverage   62.01%   59.27%   -2.74%     
==========================================
  Files           4        4              
  Lines         337      361      +24     
  Branches       63       67       +4     
==========================================
+ Hits          209      214       +5     
- Misses         92      115      +23     
+ Partials       36       32       -4     
Flag Coverage Δ
Linux 58.62% <90.90%> (+9.56%) ⬆️
Windows 73.36% <100.00%> (+16.66%) ⬆️
libappindicator3-dev 58.62% <90.90%> (+9.56%) ⬆️
libayatana-appindicator3-dev 58.62% <90.90%> (?)
macOS ?

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

Files with missing lines Coverage Δ
src/tray_windows.c 82.95% <100.00%> (+18.62%) ⬆️
src/tray_linux.c 73.11% <90.90%> (+10.46%) ⬆️
src/tray_darwin.m 0.00% <0.00%> (-83.93%) ⬇️

@ReenigneArcher ReenigneArcher force-pushed the test/add-screenshots branch 29 times, most recently from d361a0c to c6d4b9b Compare December 31, 2025 05:00
@ReenigneArcher ReenigneArcher force-pushed the test/add-screenshots branch 15 times, most recently from 6e6ec72 to 2b41386 Compare January 1, 2026 00:29
@ReenigneArcher ReenigneArcher force-pushed the test/add-screenshots branch 2 times, most recently from 904f573 to b903cae Compare January 1, 2026 03:27
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 1, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
46 New issues
1 Security Hotspot
46 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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