Toolverse
All skills

run-tests

by pgschema

Run pgschema automated tests (go test) to validate diff logic, plan generation, and dump functionality using test fixtures

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
pgschema
Category
Testing
Views
3

About this skill

Run pgschema automated tests (go test) to validate diff logic, plan generation, and dump functionality using test fixtures

How to use

  1. Zainstaluj skill w swoim projekcie pgschema, umieszczając go w katalogu .claude/skills/. Upewnij się, że masz zainstalowany Go i dostęp do repozytorium pgschema.
  2. Uruchom podstawowy test diff, aby walidować logikę porównywania schematów: go test -v ./internal/diff -run TestDiffFromFiles. Test powinien zakończyć się w około 2 sekundy i nie wymaga uruchomionej bazy danych.
  3. Jeśli chcesz testować pełny przepływ (plan i apply) z wbudowanym PostgreSQL, użyj: go test -v ./cmd -run TestPlanAndApply. Ten test trwa 30–60 sekund i waliduje całą logikę generowania planów.
  4. Aby zawęzić testy do konkretnej kategorii, ustaw zmienną PGSCHEMA_TEST_FILTER przed uruchomieniem, na przykład: PGSCHEMA_TEST_FILTER="create_trigger/" go test -v ./cmd -run TestPlanAndApply. Dostępne kategorie to: comment/, create_domain/, create_function/, create_index/, create_table/, create_trigger/, create_view/ i inne.
  5. Gdy zmienisz implementację i chcesz zaktualizować oczekiwane wyniki testów, uruchom: PGSCHEMA_TEST_FILTER="category/test_name" go test -v ./cmd -run TestPlanAndApply --generate. Flaga --generate nadpisze pliki diff.sql, plan.json i plan.sql. Zawsze sprawdź zmiany za pomocą git diff i ponownie uruchom test bez flagi --generate, aby potwierdzić.
  6. Do testowania na różnych wersjach PostgreSQL ustaw PGSCHEMA_POSTGRES_VERSION przed testem, na przykład: PGSCHEMA_POSTGRES_VERSION=17 go test -v ./cmd/dump -run TestDumpCommand. Skill wspiera wersje 14–18.

Related skills

pair-trade-screener

by tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair

Testing
994

playwright-browser-automation

by lackeyjb

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test

Testing
13130

webapp-testing

by anthropics

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

Testing
130255

langgraph-docs

by langchain-ai

Use this skill for requests related to LangGraph in order to fetch relevant documentation to provide accurate, up-to-date guidance.

Testing
23127

performing-penetration-testing

by jeremylongshore

This skill enables automated penetration testing of web applications. It uses the penetration-tester plugin to identify vulnerabilities, including OWASP Top 10 threats, and suggests exploitation techniques. Use this skill when the user requests a \

Testing
1546

dependency-upgrade

by wshobson

Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.

Testing
17138