• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

igancev / work-reporter
99%

Build:
DEFAULT BRANCH: main
Repo Added 16 May 2026 04:08PM UTC
Token MVBrf3Q2t035WLZMBWKLaaB5IWwUey0YU regen
Build 27 Last
Files 47
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: main
CHANGE BRANCH
x
Reset
Sync Branches
  • main
  • doc/add-screenshot
  • doc/clarify-config-structure
  • feat/app-version-banner
  • feat/ascii-banner
  • feat/issue-60-code-coverage
  • feat/msi-badge-70
  • feat/mutation-testing
  • fix/68-windows-home-env-var
  • fix/infection-logs
  • fix/superproductivity-path
  • refactor/cli-structure
  • refactor/issue-77
  • refactor/issue-85

02 Jun 2026 06:47PM UTC coverage: 98.987% (-0.8%) from 99.795%
26840888106

push

github

web-flow
fix: resolve home directory via cross-platform helper (partial #68) (#87)

InitCommand and YamlConfigProvider read \`getenv('HOME')\` directly to
expand the leading \`~\` in the default config path. On Windows that env
var is usually unset (the OS uses \`USERPROFILE\` plus optional
\`HOMEDRIVE\` / \`HOMEPATH\` as the fallback chain), so \`~/.config/...\`
quietly resolved to \`/.config/...\` at filesystem root and \`init\` /
\`work:report\` silently misbehaved.

Introduce \`Igancev\\WorkReporter\\Platform\\HomeDirectory::resolve()\`
that returns the canonical home path per platform: \`HOME\` on POSIX,
\`USERPROFILE\` on Windows with the documented \`HOMEDRIVE\` + \`HOMEPATH\`
fallback for containers/services that strip \`USERPROFILE\`. The helper
returns an empty string when nothing is set so callers see the same
shape as the prior \`(string)getenv(...)\` cast.

Scope: only the env-var leg of #68's checklist. CI workflow for the
Windows binary, README install section, and end-to-end Windows binary
verification are intentionally left for follow-up PRs so each item
stays atomic per CLAUDE.md / CONTRIBUTING.md guidance.

Verification:

    vendor/bin/phpunit tests/Unit/Platform/HomeDirectoryTest.php
    vendor/bin/phpunit tests/Unit/InitCommandTest.php \
        tests/Unit/Config/YamlConfigProviderTest.php
    make cs
    make stat-analyze

all pass on macOS (POSIX path); the Windows-only assertions are
skipped on POSIX runners and exercised on a future Windows CI lane.

5 of 13 new or added lines in 3 files covered. (38.46%)

977 of 987 relevant lines covered (98.99%)

6.16 hits per line

Relevant lines Covered
Build:
Build:
987 RELEVANT LINES 977 COVERED LINES
6.16 HITS PER LINE
Source Files on main
  • Tree
  • List 47
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26840888106 main fix: resolve home directory via cross-platform helper (partial #68) (#87) InitCommand and YamlConfigProvider read \`getenv('HOME')\` directly to expand the leading \`~\` in the default config path. On Windows that env var is usually unset (the OS... push 02 Jun 2026 06:49PM UTC web-flow github
98.99
26415503534 main refactor: use getters with validation in SourcesConfig and DestinationsConfig (#86) push 25 May 2026 07:00PM UTC web-flow github
99.8
26323613782 main fix: disable github logger in infection config (#84) push 23 May 2026 04:38AM UTC web-flow github
99.28
26309717482 main fix: update SuperProductivity path case and support tilde expansion (#82) push 22 May 2026 08:15PM UTC web-flow github
99.28
26299682847 main docs: add application screenshot to README (#80) push 22 May 2026 04:32PM UTC web-flow github
99.28
26255798040 main refactor: clean up core components and update factories (#78) - Rename ConfigProvider::get() to getConfig() - Refactor WorkReportCommand to use factories for initialization - Simplify Source/Destination factory interfaces - Update unit tests Clo... push 21 May 2026 10:06PM UTC web-flow github
99.28
26250681832 main docs: clarify config file structure and update examples in README and InitCommand (#76) push 21 May 2026 08:18PM UTC web-flow github
100.0
26180059333 main refactor: move CLI classes to Cli namespace (closes #71) (#72) push 20 May 2026 05:53PM UTC web-flow github
100.0
26178454504 main feat: display ASCII banner on --version flag (#70) push 20 May 2026 05:21PM UTC web-flow github
100.0
26149810391 main Add application ASCII banner (#67) * feat: add application ASCII banner (closes #66) * refactor: remove unnecessary blank line in Banner output method * refactor: remove unnecessary blank line in Banner output method * feat: add version and ta... push 20 May 2026 08:08AM UTC web-flow github
100.0
See All Builds (27)

Badge your Repo: work-reporter

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc