Commit fde7159
committed
test: add e2e and unit test suite
- Add comprehensive e2e tests against real GSoC 2025 dataset (251 contributors)
- Add unit tests for API, Util, and refresh modules
- Test all HTTP endpoints: /data, /config, /log, /stats, /rank, /contributor,
/login, /setStartDate, /setInterval, /setIncludedRepositories, /remove
- Validate cross-endpoint consistency, invalid JSON handling, unknown routes
- Fixture-based test isolation using temp directories and env-var overrides
- Add npm test script (installs server deps before running tests)
- Requires Node.js 18+1 parent 41b6731 commit fde7159
15 files changed
Lines changed: 5639 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Large diffs are not rendered by default.
0 commit comments