Skip to content
Back to skills

C2f Database Testing

ASecurity

LEIA ANTES de rodar ou criar testes automatizados de banco de dados (PHPUnit / SQLite / MySQL). Se não ler: testes poluem o banco principal, falham por funções MySQL não suportadas em SQLite ou mascaram regressões.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentjavascriptjavaphpsqltestingdatabaseci/cd

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add otavioserra/conn2flow-ai-workspace --skill c2f-database-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of C2f Database Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for C2f Database Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/otavioserra-c2f-database-testing/badge)](https://www.skillsdirectory.com/skills/otavioserra-c2f-database-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: c2f-database-testing
description: "LEIA ANTES de rodar ou criar testes automatizados de banco de dados (PHPUnit / SQLite / MySQL). Se não ler: testes poluem o banco principal, falham por funções MySQL não suportadas em SQLite ou mascaram regressões."
user-invocable: false
---

# Testes isolados de banco Conn2Flow

# ⚡ Gatilho Obrigatório
- **TRIGGER**: Escrever, executar ou debugar testes automatizados unitários ou de integração que acessam tabelas de banco de dados.
- **SKIP APENAS SE**: Testes de unidade puros (com mocking completo) ou testes exclusivos de JavaScript (Vitest/happy-dom).
- **CONSEQUÊNCIA DE IGNORAR**: Testes falham no CI/CD por incompatibilidade SQLite/MySQL ou poluem indevidamente a base de desenvolvimento local `conn2flow_test`.

---

1. Prefira SQLite em memória para funções puras, CRUD isolado e fluxos com transporte/resolvers injetáveis.
2. Quando a semântica MySQL for indispensável, use somente o banco dedicado `conn2flow_test` no container local.
3. Nunca rode testes destrutivos contra o banco de desenvolvimento `conn2flow`.
4. Crie o schema mínimo necessário, isole fixtures e remova o banco/tabelas de teste ao final.
5. Use guards de autorun para incluir controladores diretamente e injete PDO/configuração em vez de depender do bootstrap completo.
6. Se um teste modificar manifestos ou data files versionados, restaure apenas esses efeitos colaterais fora do escopo e confirme o diff.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.