testing-workflow

Automate layer-by-layer end-to-end testing workflows with SQL, API, component, and Playwright tests.

Updated Oct 12, 2025
One-click install
npx skills add https://github.com/amo-tech-ai/medellin-spark --skill testing-workflow-amo-tech-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-workflow
Source: https://github.com/amo-tech-ai/medellin-spark/tree/main/.claude/archive/skills/testing-workflow
Command: npx skills add https://github.com/amo-tech-ai/medellin-spark --skill testing-workflow-amo-tech-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pnpm, playwright, supabase-cli.

What problem does it solve?

This Skill provides a structured, layer-by-layer approach to testing, ensuring comprehensive coverage from the database to the end-user interface. It eliminates ad-hoc testing, reduces the risk of bugs in production, and makes your testing process efficient and reliable.

Core Features & Use Cases

  • Layered Testing Philosophy: Guides testing from Database (SQL, RLS) → Backend (Edge Functions) → Frontend (Components) → E2E (User Journeys).
  • Quick Test Commands: Provides commands for pre-commit checks, full test suites, and watch mode for rapid feedback.
  • Pre-Deployment & Production Readiness: Includes checklists for ensuring code quality, functionality, and backend integrity before deployment.
  • Use Case: Before deploying a new feature, use this skill to run a full test suite, including Playwright E2E tests, to validate the entire user journey and ensure all layers of your application are working correctly.

Quick Start

Pre-Commit Check (30 sec)

pnpm tsc && pnpm build

Full Test Suite (5 min)

pnpm tsc && pnpm build && npx playwright test

Frequently Asked Questions about testing-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up layer-by-layer testing across my database, backend, and frontend?

Layer-by-layer testing validates each tier of your application systematically: Layer 1 runs SQL and RLS checks on your database, Layer 2 tests edge functions and APIs, Layer 3 covers component tests, and Layer 4 executes end-to-end Playwright tests. This structured approach catches bugs at their source and ensures production readiness before deployment.

Can I automate end-to-end testing with Playwright for user journey validation?

Yes. Playwright-based E2E testing automates user journey validation across your full application stack. Run `pnpm tsc && pnpm build && npx playwright test` to execute your complete test suite and verify all layers work together before deployment.

What's the fastest way to run pre-commit testing checks?

Pre-commit checks take 30 seconds with `pnpm tsc && pnpm build`, catching type errors and build failures instantly. For comprehensive validation, run the full suite in 5 minutes including Playwright E2E tests to ensure code quality across all layers.

How do I ensure my Supabase database and edge functions pass testing before production?

Test your Supabase stack layer by layer: validate database integrity with SQL and RLS checks, test edge functions and APIs, then run Playwright E2E tests covering user journeys. Pre-deployment checklists guide you through production-readiness verification.

Does this testing approach work for rapid development with watch mode?

Yes. Quick test commands and watch mode support rapid feedback during development. Run pre-commit checks frequently for fast iteration, then execute the full test suite before deployment to catch integration issues across all application layers.