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

FROSADO / onecloudriver / 31304439589
78%

Build:
DEFAULT BRANCH: main
Ran 09 Aug 2026 08:53AM UTC
Jobs 1
Files 40
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

09 Aug 2026 08:49AM UTC coverage: 71.195%. Remained the same
31304439589

push

github

FROSADO
test(cli): add binary-driven smoke tests for onecloudriver CLI

Adds 11 real integration tests that build and execute the CLI binary:
- --help: verifies all 13 subcommands appear in help output
- --version: checks for 'onecloudriver version dev'
- Subcommand help: account, mount, service, download, upload, list
- account list: uses temp XDG_CONFIG_HOME to verify 'No accounts'
- Invalid command: non-zero exit code
- account remove: missing arg returns non-zero

Design:
- TestMain builds the binary once via 'go build'
- Binary build is skipped in CI (GITHUB_ACTIONS/CI env vars)
- Commands that invoke PersistentPreRun use context.WithTimeout
  (10s) to avoid hanging on unavailable keyring
- exitCode() helper deduplicates exec.ExitError extraction
- All --help/--version tests bypass PersistentPreRun (cobra built-in)

3396 of 4770 relevant lines covered (71.19%)

501.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31304439589.1 09 Aug 2026 08:53AM UTC 40
71.19
GitHub Action Run
Source Files on build 31304439589
  • Tree
  • List 40
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 024bd107 on github
  • Prev Build on report-coverage (#31280642894)
  • Next Build on main (#31413989805)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc