supabase-database-testing

Community

Automate pgTAP database tests for Postgres.

AuthorSaschaLeh
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Testing Supabase PostgreSQL databases with pgTAP is essential to ensure correctness of database logic, enforce access rules, and maintain data integrity across migrations and deployments.

Core Features & Use Cases

  • pgTAP-based unit tests for functions, tables, and access policies within a Supabase project.
  • RLS policy verification, deterministic test data setup, and simulated authenticated users.
  • Organized test files under supabase/tests with a standard setup/rollback pattern to keep databases clean and reproducible.

Quick Start

Run the database test suite with supabase test db to execute all tests located under supabase/tests.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: supabase-database-testing
Download link: https://github.com/SaschaLeh/dotfiles/archive/main.zip#supabase-database-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.