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

lhohan / simple-time-tracker / 19366554324
85%

Build:
DEFAULT BRANCH: main
Ran 14 Nov 2025 01:50PM UTC
Jobs 1
Files 21
Run time 1min
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

14 Nov 2025 01:48PM UTC coverage: 89.816% (+0.3%) from 89.549%
19366554324

push

github

lhohan
feat: Add CLI usage statistics tracking

Implement a non-intrusive usage statistics feature that tracks which CLI flags are
used when invoking the application. The implementation:

- Collects flag usage at the CLI layer without impacting domain logic
- Stores statistics as JSONL (one JSON object per line) for easy analysis
- Only includes flags that were explicitly set (not defaults)
- Configurable stats directory via TT_STATS_DIR environment variable
- Records timestamp, execution mode (CLI/web), success/failure, and used flags

New files:
- src/cli/statistics.rs: Core statistics collection and file I/O
- tests/acceptance/cli_stats_common.rs: DSL for testing stats with semantic assertions
- tests/acceptance/cli_stats.rs: 18 focused acceptance tests covering individual flags,
  flag combinations, and file management

Modified files:
- src/cli/mod.rs: Export statistics module
- src/main.rs: Integrate statistics collection into main execution flow
- tests/acceptance/main.rs: Include new test modules

All 177 acceptance tests pass, including 18 new stats-specific tests.

87 of 91 new or added lines in 2 files covered. (95.6%)

1 existing line in 1 file now uncovered.

2152 of 2396 relevant lines covered (89.82%)

93.1 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
95.06
src/cli/statistics.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
42.57
5.62% src/main.rs
Jobs
ID Job ID Ran Files Coverage
1 19366554324.1 14 Nov 2025 01:50PM UTC 21
89.82
GitHub Action Run
Source Files on build 19366554324
  • Tree
  • List 21
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19366554324
  • 51ae0e7e on github
  • Prev Build on main (#19363868794)
  • Next Build on main (#19366669801)
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