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

GrottoCenter / grottocenter-api / 24894191240
86%
develop: 87%

Build:
Build:
LAST BUILD BRANCH: feat/admin-security-hardening
DEFAULT BRANCH: develop
Ran 24 Apr 2026 02:17PM UTC
Jobs 1
Files 374
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

24 Apr 2026 02:15PM UTC coverage: 86.293% (-0.03%) from 86.325%
24894191240

Pull #1537

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
Pull Request #1537: test(perf): parallelize test suite and fix stability (5x speedup)

2873 of 3472 branches covered (82.75%)

Branch coverage included in aggregate %.

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

5966 of 6771 relevant lines covered (88.11%)

50.94 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 24894191240.1 24 Apr 2026 02:17PM UTC 374
86.29
GitHub Action Run
Source Files on build 24894191240
  • Tree
  • List 374
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24894191240
  • Pull Request #1537
  • PR Base - develop (#24857667445)
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