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

supabase / supabase-flutter / 32470384127
89%

Build:
DEFAULT BRANCH: main
Ran 21 Aug 2026 09:59AM UTC
Jobs 10
Files 120
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 Aug 2026 09:57AM UTC coverage: 88.564% (+0.02%) from 88.549%
32470384127

push

github

web-flow
feat: introduce the supabase_testing package (#1747)

Follow-up to #1745, which consolidated the test helpers of all the
client suites into `supabase_common`'s testing library. This PR breaks
those helpers out into a new published `supabase_testing` package aimed
at consumers, keeps `supabase_common` a purely internal package, and
adds the helpers and documentation that make testing an app against
Supabase easy.

## The package split

- `packages/supabase_testing` is a new published package holding the
customer-facing helpers: the mock HTTP clients, JWT builders, auth
fixtures and realtime frame builders from #1745. All nine client package
suites now consume them from there as a dev dependency.
- `supabase_common` goes back to its internal branding (README, pubspec
description and topics). Its `testing.dart` shrinks back to the
repo-internal local stack configuration, which is tied to this
repository's `supabase/config.toml` and is not useful to consumers.
- `supabase_testing` is excluded from the capability-matrix scan, since
test helpers are not SDK client surface.

## New helpers

Built on top of the moved primitives, verified by their own test suite:

- **`MockSupabaseHttpClient`**: answers requests from stubs registered
per endpoint, with shorthands for the service layouts so tests never
spell out URL paths: `stubTable` (`/rest/v1/<table>`), `stubRpc`,
`stubEdgeFunction` and `stubSignIn` (a working token endpoint). The
latest matching stub wins, `times` limits how often a stub answers so
call sequences can be modeled, and an unmatched request throws a
`StateError` naming the request and the registered stubs. Every answered
request is recorded with its body already read (`request.jsonBody`), so
tests can assert on what the code under test sent.
- **`testSupabaseClient`**: a `SupabaseClient` wired for tests, removing
the footguns of constructing one by hand: in-memory pkce storage, token
auto refresh off so no timer outlives the test, and an unsign... (continued)

5901 of 6663 relevant lines covered (88.56%)

4.36 hits per line

Coverage Regressions

Lines Coverage ∆ File
63
69.48
-0.24% packages/iceberg/lib/src/iceberg_types.dart
2
98.74
0.0% packages/supabase_storage/lib/src/types.dart
Jobs
ID Job ID Ran Files Coverage
1 supabase_realtime - 32470384127.1 21 Aug 2026 10:02AM UTC 13
90.27
GitHub Action Run
2 supabase - 32470384127.2 21 Aug 2026 10:03AM UTC 14
93.56
GitHub Action Run
3 yet_another_json_isolate - 32470384127.3 21 Aug 2026 09:59AM UTC 1
98.41
GitHub Action Run
4 supabase_flutter - 32470384127.4 21 Aug 2026 09:59AM UTC 11
81.82
GitHub Action Run
5 iceberg - 32470384127.5 21 Aug 2026 09:59AM UTC 6
68.52
GitHub Action Run
6 supabase_functions - 32470384127.6 21 Aug 2026 09:59AM UTC 4
97.83
GitHub Action Run
7 supabase_common - 32470384127.7 21 Aug 2026 09:59AM UTC 21
86.96
GitHub Action Run
8 postgrest - 32470384127.8 21 Aug 2026 10:01AM UTC 11
84.48
GitHub Action Run
9 supabase_storage - 32470384127.9 21 Aug 2026 10:01AM UTC 9
97.31
GitHub Action Run
10 supabase_auth - 32470384127.10 21 Aug 2026 10:03AM UTC 30
90.67
GitHub Action Run
Source Files on build 32470384127
  • Tree
  • List 120
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #32470384127
  • 5a3aa9b4 on github
  • Prev Build on main (#32465485913)
  • Next Build on main (#32480403815)
  • Delete
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