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

Geoffery10 / Discord-Role-Manager / 29956984604
90%

Build:
DEFAULT BRANCH: main
Ran 22 Jul 2026 08:54PM UTC
Jobs 1
Files 27
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

22 Jul 2026 08:52PM UTC coverage: 90.461% (+9.4%) from 81.095%
29956984604

push

github

Geoffery10
Add route tests for dashboard/main.py — 30% → 70% coverage

test_dashboard_helpers.py covered the pure helpers and schema migration
in dashboard/main.py, but the 20 route handlers had zero direct test
coverage. This file uses FastAPI's TestClient to hit each route
through the real ASGI app, with the DB and JSON file paths redirected
to a fresh tmp dir per test so each one is isolated.

Covers 13 of the 20 routes: the high-value ones that drive the
Overview, Users, Roles, Birthdays, Guilds, and Logs tabs, plus the
auth/me endpoint and /auth/logout. The OIDC callback, the SSE avatar
refresh stream, and the @app.on_event startup hook are deliberately
skipped — they need a real OIDC mock, real Discord API, and lifespan
handler respectively, all of which are out of scope for a route
contract test.

Coverage impact (combined with the existing helpers tests):
  dashboard/main.py: 30% → 70%  (+40 pp)
  overall project:   61% → 83%  (+22 pp)
  test count:       143 → 190  (+47)

Each test focuses on a single contract: status code, key payload
fields, edge cases (empty DB, invalid params, sort injection
attempt, missing log file, etc). Tests that revealed wrong
assumptions during writing were corrected to match the actual
route behavior — see the rename of test_api_guilds_merges_with_
birthday_config which originally assumed the birthday.json name
overrode the table name (it doesn't).

442 of 442 new or added lines in 1 file covered. (100.0%)

2845 of 3145 relevant lines covered (90.46%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29956984604.1 22 Jul 2026 08:54PM UTC 27
90.46
GitHub Action Run
Source Files on build 29956984604
  • Tree
  • List 27
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29956984604
  • f881834e on github
  • Prev Build on main (#29950793573)
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