scaffolding-oracle-to-postgres-migration-test-project — Copilot скилл
Создаёт пустой xUnit-проект интеграционных тестов для Oracle в .NET-решении. Нужен перед написанием базовых тестов на этапе Phase 3.
npx skills add github/awesome-copilot --skill scaffolding-oracle-to-postgres-migration-test-projectЧто делает scaffolding-oracle-to-postgres-migration-test-project
Скилл проверяет .csproj целевого проекта, сохраняет его версии .NET и пакетов, затем создаёт отдельный xUnit-проект с ссылкой только на тестируемый проект. В него добавляются подключение к Oracle через Oracle.ManagedDataAccess.Core, appsettings.json и инфраструктура для сборки тестов.
В проекте появляется базовый класс с транзакцией перед каждым тестом и откатом после него. Исключения обрабатываются так, чтобы откат выполнялся в любом случае. Seed-менеджер загружает данные внутри транзакции, не выполняет commit и не использует TRUNCATE TABLE. Перед завершением проект собирается, а результатом должен быть пустой проект без тест-кейсов.
Ставьте скилл один раз на этапе Phase 3 для Oracle. На этапе Phase 6 его запускать не нужно: PostgreSQL-проект получают копированием и миграцией этого проекта.
Какие задачи решает
- создать xUnit-проект для Oracle-интеграционных тестов
- сохранить версии .NET и пакетов целевого проекта
- откатывать транзакцию после каждого теста
- загружать seed-данные без commit
- проверить сборку тестового проекта без ошибок
Примеры запросов агенту
- Создай инфраструктуру Oracle-тестов для целевого .NET-проекта на этапе Phase 3.
- Проверь `.csproj`, создай xUnit-проект и добавь базовый класс с откатом транзакции.
- Добавь seed-менеджер и собери проект, не создавая тест-кейсы.
Как установить scaffolding-oracle-to-postgres-migration-test-project
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill scaffolding-oracle-to-postgres-migration-test-project2GitHub CLI
gh skill install github/awesome-copilot scaffolding-oracle-to-postgres-migration-test-project3Вручную: положить файлы
.github/skills/scaffolding-oracle-to-postgres-migration-test-project/SKILL.md1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill scaffolding-oracle-to-postgres-migration-test-project -a claude-code2Вручную: положить файлы
~/.claude/skills/scaffolding-oracle-to-postgres-migration-test-project/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/scaffolding-oracle-to-postgres-migration-test-project/
Вручную: положить файлы
.agents/skills/scaffolding-oracle-to-postgres-migration-test-project/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/scaffolding-oracle-to-postgres-migration-test-project/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
Командой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/scaffolding-oracle-to-postgres-migration-test-projectВручную: положить файлы
.devin/skills/scaffolding-oracle-to-postgres-migration-test-project/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора554
Весь набор →Похожие
Вопросы о scaffolding-oracle-to-postgres-migration-test-project
Как установить scaffolding-oracle-to-postgres-migration-test-project в GitHub Copilot?
Выполните npx skills add github/awesome-copilot --skill scaffolding-oracle-to-postgres-migration-test-project, затем используйте файл .github/skills/scaffolding-oracle-to-postgres-migration-test-project/SKILL.md.
Что делает scaffolding-oracle-to-postgres-migration-test-project?
Скилл создаёт пустой xUnit-проект для Oracle в .NET-решении. Он добавляет транзакционный базовый класс, seed-менеджер, настройки подключения и проверку сборки.
Можно ли запустить скилл для PostgreSQL на этапе Phase 6?
Нет. Скилл предназначен для Oracle на этапе Phase 3, а PostgreSQL-проект получают копированием и миграцией созданного проекта.
Исходный текст
SKILL.md · MIT
--- name: scaffolding-oracle-to-postgres-migration-test-project description: 'Scaffolds an xUnit integration test project targeting Oracle in .NET solutions. Creates the test project, transaction-rollback base class, and seed data manager. Use only during Phase 3, before writing Oracle baseline integration tests. Do not invoke during Phase 6 — the PostgreSQL test project is produced by migrating this project, not by running this skill again.' --- # Scaffolding an Integration Test Project for Oracle-to-PostgreSQL Migration Creates a compilable, empty xUnit test project with transaction management and seed data infrastructure for a single target project. Run once per project before writing tests. ## Workflow ``` Progress: - [ ] Step 1: Inspect the target project - [ ] Step 2: Create the xUnit test project - [ ] Step 3: Implement transaction-rollback base class - [ ] Step 4: Implement seed data manager - [ ] Step 5: Verify the project compiles ``` **Step 1: Inspect the target project** Read the target project's `.csproj` to determine the .NET version and existing package references. Match these versions exactly — do not upgrade. **Step 2: Create the xUnit test project** - Target the same .NET version as the application under test. - Add NuGet packages for Oracle database connectivity (`Oracle.ManagedDataAccess.Core`) and xUnit. - Add a project reference to the target project only — no other application projects. - Add an `appsettings.json` configured for Oracle database connectivity. **Step 3: Implement transaction-rollback base class** - Create a base test class that opens a transaction before each test and rolls it back after. - Catch and handle all exceptions to guarantee rollback. - Make the pattern inheritable by all downstream test classes. **Step 4: Implement seed data manager** - Create a global seed manager for loading test data within the transaction scope. - Do not commit seed data — transactions roll back after each test. - Do not use `TRUNCATE TABLE` — preserve existing database data. - Establish a naming convention for seed file location that downstream test creation will follow. **Step 5: Verify the project compiles** Build the test project and confirm it compiles with zero errors before finishing. ## Key Constraints - **Phase 3 only** — this skill scaffolds the Oracle-targeting test project. The PostgreSQL test project (Phase 6) is created by copying and migrating this project; do not run this skill again at that point. - Oracle is the golden behavior source — scaffold for Oracle only, not PostgreSQL. - Keep to existing .NET and C# versions; do not introduce newer language or runtime features. - Output is an empty test project with infrastructure only — no test cases.
© github · MIT · github/awesome-copilot