/oracle-to-postgres-migration-expert:creating-oracle-to-postgres-migration-integration-testsfrom oracle-to-postgres-migration-expert
Creates Oracle integration tests for .NET data access artifacts before PostgreSQL migration, capturing Oracle behavior as a golden baseline with portable assertions for later migration phases.
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.
Generate integration tests for one target .NET project that execute against Oracle, seed only minimal collision-safe data, and preserve expected behavior so the same logical tests can be ported during Phase 6 PostgreSQL migration.
| Inspect | Learn |
|---|---|
| Base test class | Inheritance pattern, automatic transaction create/rollback, connection ownership, setup/teardown behavior. |
| Seed manager | How seed data is loaded, verified, isolated, and rolled back. |
| Project file | Test framework, Oracle dependencies, build target, nullable settings, and package conventions. |
| Existing tests | Naming, arrange/act/assert style, fixture boundaries, lookup helpers, and assertion granularity. |
Scope to data access methods in the target project: repositories, DAOs, stored procedure callers, query builders, direct SQL wrappers, and database-backed services. Exclude artifacts outside the project and code paths that do not touch the database.
| Artifact type | Minimum test target |
|---|---|
| Repository or DAO method | One successful query or command per method, plus high-risk branch coverage. |
| Stored procedure caller | Parameter mapping, returned rows/values, output parameters, and expected error type when meaningful. |
| Query builder | Generated behavior through execution, not only string shape, unless string generation is the artifact's contract. |
| Write path | Insert/update/delete effect verified by readback inside the rollback transaction. |
TRUNCATE TABLE; preserve existing business rows and lookup rows.LookupConstants class for stable lookup IDs/codes used across seed builders and assertions.| Rule | Rationale |
|---|---|
| Inherit from the base test class | Reuse automatic transaction create/rollback and project infrastructure. |
| Cover every database-touching method in scope | Phase 3 tests become the Oracle golden source. |
| Assert rows, columns, counts, error types, and returned values | Logical outputs survive PostgreSQL migration better than vendor messages. |
| Assert concrete values from seed data | not null or not empty assertions miss behavioral regressions. |
Include empty-string and NULL/missing input for text parameters where applicable | Oracle and PostgreSQL differ around empty string semantics. |
| Validate datetime write/read precision | Use the Oracle column's precision, for example seconds-only for date/time columns without fractional seconds. |
| Avoid redundant assertions | Each test should prove a distinct behavior or branch. |
| Avoid impossible behavior | Do not test code paths that cannot occur in the implementation. |
This skill covers oracle-to-postgresql migration preparation only. Prefer additional tests for higher-risk behavior branches. Base classes should provide transaction create/rollback. behavior, and assertions should avoid weak non-empty checks when seed data provides exact expected values.
Re-examine every assertion that checks non-null values. Confirm the value is controlled by seed data, stable lookup rows, or a deterministic database response. Replace environment-dependent assertions with seeded values, explicit counts, or documented gaps.
NULL/missing text input where the method accepts text parameters.## Oracle migration integration tests result — <target project>
**Status:** created | partial | blocked
**Phase:** 3 Oracle baseline
**Target project:** `<project>`
**Test project:** `<test project>`
### Coverage
| Artifact | Methods tested | Seed data | Assertions | Notes |
| --- | --- | --- | --- | --- |
| `<repository/DAO/procedure/query builder>` | `<methods>` | `<seed files or builders>` | rows/columns/counts/error types/readback | <notes> |
### Validation
- Test project compiled: pass | fail | not run
- Integration tests run: pass | fail | not run
- Determinism review complete: yes | no
- PostgreSQL work avoided: yes | no
TRUNCATE TABLE.NULL/missing coverage where applicable.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin oracle-to-postgres-migration-expert8 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./migrating-oracle-to-postgres-data-access-codeMigrate .NET/C# data access code from Oracle.ManagedDataAccess or Oracle.EntityFrameworkCore to PostgreSQL with Npgsql. Use when replacing OracleConnection, OracleCommand, OracleDataReader, OracleDbType mappings, stored procedure calls, connection strings, inline SQL, and EF Core provider configuration during an Oracle-to-PostgreSQL migration.Other plugins' skills for the same job