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

GrottoCenter / grottocenter-api / 25185951719
87%

Build:
DEFAULT BRANCH: develop
Ran 01 May 2026 12:50AM UTC
Jobs 1
Files 381
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

30 Apr 2026 07:47PM UTC coverage: 86.326% (-0.04%) from 86.367%
25185951719

push

github

ClemRz
test(perf): parallelize test suite and fix stability (5x speedup)

Replace HTTP-hitting property tests with conventional integration tests
to eliminate socket hang ups and connection corruption. Add a parallel
test runner that shards by domain folder, each shard against its own
database cloned from a pre-seeded PostgreSQL template. The template
rebuilds automatically when fixtures, models, or SQL migrations change.

Stability:
- Replace 33 HTTP property tests with ~70 conventional it() tests
- Reuse Sails HTTP server in supertest (no ephemeral listen/close cycles)
- Fix Cave update after hook (broken Waterline association restore)
- Fix rate limiter tests to reuse connections via supertest.agent()
- Fix blacklist test clock skew (backdate revocation instead of sleeping)
- Fix RecentChangeWindow flaky spy assertion (calledOnce → called)
- Set global Mocha timeout to 10s (was 2s default)

Performance:
- Parallel test runner with folder-based sharding (auto-detected CPUs)
- Template database snapshot with mtime-based staleness detection
- Move auth brute-force delay and argon2 cost to Sails config
- config/env/test.js overrides: delay=0, minimal argon2 cost
- Batch 4 sequential bootstrap SQL queries into one round-trip
- Extract shared fixture order to test/fixtureOrder.js

Runner UX:
- Live progress with percentage, failure count, and boot status
- Press q to abort mid-run with partial summary
- Top 3 slowest tests printed after results
- Shard tmp file paths shown in results table

Housekeeping:
- Add glob and pg to devDependencies (were transitive only)
- Extract DEFAULT_URL to shared test/test-config.js
- Wrap shard cleanup in try/finally to prevent orphaned databases
- Document sequential coverage in README

New commands:
- npm run test              — parallel with auto-snapshot (default)
- npm run test:sequential   — single-process fallback
- npm run test:snapshot     — manually rebuild the template

2948 of 3564 branches covered (82.72%)

Branch coverage included in aggregate %.

4 of 5 new or added lines in 2 files covered. (80.0%)

6149 of 6974 relevant lines covered (88.17%)

51.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
86.96
-3.52% api/services/AuthService.js
Jobs
ID Job ID Ran Files Coverage
1 25185951719.1 01 May 2026 12:50AM UTC 381
86.33
GitHub Action Run
Source Files on build 25185951719
  • Tree
  • List 381
  • Changed 4
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25185951719
  • 9b9303d3 on github
  • Prev Build on develop (#25185677026)
  • Next Build on develop (#25256982785)
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