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

supabase / supabase-swift / 29831734314
84%

Build:
DEFAULT BRANCH: main
Ran 21 Jul 2026 12:57PM UTC
Jobs 1
Files 96
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

21 Jul 2026 12:49PM UTC coverage: 83.768% (+0.2%) from 83.583%
29831734314

push

github

web-flow
test(postgrest): migrate PostgRESTTests to Swift Testing, keep Mocker (Phase 4) (#1095)

* test(postgrest): migrate PostgRESTTests to Swift Testing, keep Mocker

Same Phase 4 migration as #1095, but stays on Mocker for HTTP mocking
instead of Replay -- Replay isn't proven yet for all our cases, so we
stick with Mocker for now. Restores .snapshotRequest curl-body
assertions everywhere instead of Replay's exact-URL/.query/.custom
matcher scheme (which existed only to claw back query/body coverage
that path-only Replay stubs had silently dropped in #1095's first
pass) -- Mocker gives that coverage for free.

PostgresQueryTests.swift's XCTestCase-inheritance base class becomes a
composed PostgrestQueryFixture struct (renamed file), since Swift
Testing suites don't support shared state through subclassing. The 5
suites built on that fixture (Builder/Filter/Query/Rpc/Transform) share
a process-global Mocker registry, so they're nested under a shared
PostgrestMockerTests(.serialized) namespace to keep them from running
concurrently with each other -- Swift Testing applies .serialized
recursively to nested suites.

PostgrestBuilderTests is a plain struct now, not a class with deinit:
main already refactored PostgrestBuilder off the process-global _clock
test seam (see the clock-DI commit) in favor of explicit per-test clock
injection via makeSUTWithCustomFetch, so the deinit-based global-clock
reset #1095 needed no longer applies.

Ported forward the tests/fixes that landed on main after #1095's branch
point: notIn/dryRun/maybeSingle coverage and the Prefer-header fix.

Linear: SDK-1251

* fix(test): serialize Mocker-touching Swift Testing suites across targets

Mocker's mock registry is process-global across the whole test binary,
not just within one test target. StorageTests' StorageMockerTests and
PostgRESTTests' PostgrestMockerTests namespaces each already serialize
their own suites internally (.serialized), but nothing stopped the two
*targets* from runn... (continued)

8159 of 9740 relevant lines covered (83.77%)

1102442.54 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
37.23
11.68% Sources/Auth/Internal/Keychain.swift
1
41.67
-8.33% Sources/Auth/Storage/KeychainLocalStorage.swift
Jobs
ID Job ID Ran Files Coverage
1 29831734314.1 21 Jul 2026 12:57PM UTC 96
83.77
GitHub Action Run
Source Files on build 29831734314
  • Tree
  • List 96
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29831734314
  • f954625a on github
  • Prev Build on main (#29819344692)
  • Next Build on main (#29838134976)
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