
Oracle to PostgreSQL Migration Test
OfficialFreeAutomate your Oracle-to-PostgreSQL test project setup.
Free · Opens the source repo
What Oracle to PostgreSQL Migration Test does
This skill provides a structured approach to scaffold an xUnit integration test project specifically designed for validating Oracle-to-PostgreSQL database migrations in .NET applications. It automates the creation of essential components needed for testing, including a transaction management system and a seed data manager. By following the outlined workflow, developers can ensure that their test infrastructure is robust and ready for writing integration tests.
The process begins by inspecting the target project's .csproj file to align the test project's .NET version and package references with those of the application under test. This is crucial to maintain compatibility and prevent issues related to version mismatches. Once the project settings are established, the skill generates an empty xUnit test project that is tailored to the specific requirements of the migration.
A key feature of this skill is the implementation of a transaction-rollback base class, which ensures that all test operations are performed within a transaction that is rolled back after each test. This allows for clean test runs without affecting the underlying database state. Additionally, the skill includes a seed data manager that loads necessary test data while preserving existing data, thus facilitating realistic test scenarios without compromising the integrity of the database.
Overall, this skill is ideal for developers working on Oracle-to-PostgreSQL migrations who need a reliable and repeatable way to set up their testing environment. It streamlines the initial setup process, allowing teams to focus on writing effective migration tests without the overhead of manual configuration.
When to use it
Use this skill when you need to create a test infrastructure for validating Oracle-to-PostgreSQL migrations in .NET applications.
When not to use it
This skill is not suitable for projects that do not involve Oracle databases or for those needing a fully populated test project with test cases included.
What you can build with it
Setting Up Migration Tests
Quickly scaffold a test project to validate Oracle-to-PostgreSQL migrations, ensuring a smooth testing process.
Building Test Infrastructure
Establish a reliable test infrastructure with transaction management and seed data for your migration tests.
Maintaining Compatibility
Ensure that your test project matches the .NET version and package references of your existing application.
How to install Oracle to PostgreSQL Migration Test
View source1. Install with the skills CLI
npx skills add github/awesome-copilot/scaffolding-oracle-to-postgres-migration-test-project --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by githubScaffolding 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 and xUnit.
- Add a project reference to the target project only — no other application projects.
- Add an
appsettings.jsonconfigured 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. - Reuse existing seed files if available.
- 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
- Oracle is the golden behavior source — scaffold for Oracle first.
- 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.
Frequently asked questions about Oracle to PostgreSQL Migration Test
Similar skills
ClickHouse Logs Queries
Efficiently manage Supabase logs with ClickHouse SQL.
EF Core D2 Database Diagram Generator
Visualize your EF Core models as D2 diagrams effortlessly.
Safe SQL Execution
Ensure secure SQL execution in Supabase applications.
Oracle to PostgreSQL Migration
Identify migration risks between Oracle and PostgreSQL.
SSMA Console
Streamline Oracle to SQL Server migrations with ease.
SQL Performance Optimization
Enhance SQL query efficiency across all databases.
