/oracle-to-postgres-migration-expert:scaffolding-oracle-to-postgres-migration-test-projectfrom oracle-to-postgres-migration-expert
Scaffolds a compilable xUnit integration test project for a .NET Oracle application before Oracle-to-PostgreSQL migration. Creates rollback-safe database test infrastructure with seed data management.
Ships in oracle-to-postgres-migration-expert. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create an Oracle-targeting xUnit integration test project for oracle-to-postgresql migration for one .NET target project, preserving the application's runtime and package versions while adding rollback-safe database test infrastructure and a seed data convention.
| Phase | Use this skill? | Rule |
|---|---|---|
| Phase 3 Oracle baseline | Yes | Scaffold the Oracle-targeting project once, before writing Oracle behavior tests. |
| Phase 6 PostgreSQL validation | No | Produce the PostgreSQL test project by copying and migrating the Oracle project; do not run this skill again. |
| Ordinary unit testing | No | This skill creates integration infrastructure only, not unit tests or business logic tests. |
Oracle is the golden behavior source. Keep the scaffold pointed at Oracle through Oracle.ManagedDataAccess.Core; the migrated PostgreSQL project inherits structure from this baseline later.
| Artifact | Required content | Constraint |
|---|---|---|
Test .csproj | Same target framework as the application, xUnit packages, NuGet package references, Oracle.ManagedDataAccess.Core, and one project reference to the target project. | Match existing .NET, C#, and package versions exactly; do not upgrade. |
appsettings.json | Oracle connection configuration suitable for local/test environments. | Do not commit secrets; use placeholders or existing configuration conventions. |
| Rollback base class | Opens a database connection and transaction before each test; rolls back in teardown. | Catch cleanup exceptions without hiding the original test failure; guarantee rollback after every test. |
| Seed data manager | Loads deterministic seed records inside the active transaction. | Do not commit seed data; do not use TRUNCATE TABLE; preserve existing database data. |
| Seed file convention | A stable location and naming pattern for downstream tests. | Pick a convention once and document it in the project README or test helper comments. |
.csproj and package references. Record the target framework and versions before creating anything.Oracle.ManagedDataAccess.Core and configure appsettings.json for Oracle database connectivity.| Rule | Why it matters |
|---|---|
| No test cases in the scaffold | Phase 3 scaffolding prepares infrastructure; later planning and authoring decide coverage. |
No TRUNCATE TABLE | Tests must not destroy shared Oracle data while establishing baselines. |
| Roll back, do not clean up by delete scripts | Rollback keeps cleanup atomic even when assertions fail. |
| One target project per scaffold | Cross-project references hide ownership and make migration parity harder to prove. |
| Match existing versions | Version drift can create false migration differences unrelated to Oracle/PostgreSQL behavior. |
### Oracle integration test scaffold
**Status:** complete | blocked
**Target project:** `<path/to/target.csproj>`
**Test project:** `<path/to/test-project.csproj>`
| Artifact | Created | Evidence |
| --- | --- | --- |
| xUnit project | yes/no | `<file path>` |
| Oracle package | yes/no | `Oracle.ManagedDataAccess.Core` |
| Project reference | yes/no | `<referenced project>` |
| Transaction rollback base class | yes/no | `<file path>` |
| Seed data manager | yes/no | `<file path>` |
| Oracle appsettings | yes/no | `<file path>` |
**Validation**
- `dotnet build <test-project.csproj>`: pass | fail
.csproj was inspected before scaffolding.Oracle.ManagedDataAccess.Core and xUnit are present without unrelated package upgrades.TRUNCATE TABLE.appsettings.json contains Oracle connectivity placeholders without secrets.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
oracle-migration, integration-testing, xunit, dotnet, database-testing
8 skills in this plugin
/creating-oracle-to-postgres-master-migration-planDiscover .NET solution projects, classify Oracle-to-PostgreSQL migration eligibility, detect Oracle dependencies, and write .github/oracle-to-postgres-migration/Reports/MasterMigrationPlan.md. Use when starting a multi-project Oracle-to-PostgreSQL migration, inventorying .NET projects, or assessing Oracle dependency scope./creating-oracle-to-postgres-migration-bug-reportCreate structured bug reports for Oracle-to-PostgreSQL migration defects with source-of-truth Oracle behavior, PostgreSQL divergence, severity, root cause, remediation, validation, and filename convention. Use when documenting behavioral differences, failed migration tests, or data-layer defects during an Oracle-to-PostgreSQL migration./creating-oracle-to-postgres-migration-integration-testsCreate Phase 3 Oracle integration tests for .NET data access artifacts before Oracle-to-PostgreSQL migration, capturing Oracle behavior as the golden baseline while keeping assertions portable for Phase 6. Use when the user asks to add integration tests for repositories, DAOs, stored procedure callers, query builders, seed data, or lookup constants before PostgreSQL migration begins.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin oracle-to-postgres-migration-expertOther plugins' skills for the same job