본문으로 건너뛰기
Skillpedia
테스트40k · #7416

scaffolding-oracle-to-postgres-migration-test-project

하는 일

이 도구는 .NET 프로젝트에서 통합 테스트를 위한 기본 구조를 만듭니다. 데이터를 영구적으로 바꾸지 않도록 하면서 Oracle 데이터베이스 연결을 테스트할 환경을 설정합니다.

사용하는 경우

  • ✓Oracle용 통합 테스트를 작성하기 전일 때.
  • ✓테스트 데이터를 관리하는 템플릿이 필요할 때.
  • ✓Oracle에서 PostgreSQL로 옮기는 프로젝트를 준비할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/scaffolding-oracle-to-postgres-migration-test-project/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/scaffolding-oracle-to-postgres-migration-test-project/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 주 프로젝트를 위한 통합 테스트 프로젝트를 Oracle용으로 설정해서 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 Oracle 데이터베이스에 연결하는 새 테스트 프로젝트를 만듭니다. 또 각 테스트 후에 트랜잭션을 자동으로 시작하고 되돌리는 시스템과, 테스트 데이터를 불러오는 관리자를 설정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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.
자주 묻는 질문

Phase 6에서는 왜 이 도구를 쓰면 안 되나요?

Phase 6에서는 기존 테스트 프로젝트를 PostgreSQL로 옮깁니다. Phase 3에서 만든 프로젝트를 복사해 수정하는 것이 올바른 방법이며, 이 도구를 다시 실행하는 것은 아닙니다.

'seed data'란 무엇인가요?

테스트가 실행될 수 있도록 데이터베이스에 미리 넣는 초기 데이터입니다. 각 테스트가 끝나면 자동으로 삭제됩니다.

'transaction-rollback'이란 무엇인가요?

테스트 중 데이터베이스에 가한 변경이 테스트가 끝날 때 자동으로 취소되도록 하는 방법입니다. 원래 데이터를 안전하게 지킵니다.

상세 정보

작성자의 원본 설명

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.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7416
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬