MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Creating-Oracle-To-Postgres-Migration-Integration-Tests

Creating-Oracle-To-Postgres-Migration-Integration-Tests是一款code方向的AI技能,核心价值是Creates integration test cases for ,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Creates integration test cases for .NET data access artifacts during Oracle-to-PostgreSQL database migrations. Generates DB-agnostic xUnit tests with deterministic seed data that validate behavior con

Last verified on: 2026-05-30
mkdir -p ./skills/creating-oracle-to-postgres-migration-integration-tests && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/creating-oracle-to-postgres-migration-integration-tests/SKILL.md -o ./skills/creating-oracle-to-postgres-migration-integration-tests/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Creating Integration Tests for Oracle-to-PostgreSQL Migration


Generates integration test cases for data access artifacts in a single target project. Tests validate behavior consistency when running against Oracle or PostgreSQL.


Prerequisites


- The test project must already exist and compile (scaffolded separately).

- Read the existing base test class and seed manager conventions before writing tests.


Workflow


text
Test Creation:
- [ ] Step 1: Discover the test project conventions
- [ ] Step 2: Identify testable data access artifacts
- [ ] Step 3: Create seed data
- [ ] Step 4: Write test cases
- [ ] Step 5: Review determinism

**Step 1: Discover the test project conventions**


Read the base test class, seed manager, and project file to understand inheritance patterns, transaction management, and seed file conventions.


**Step 2: Identify testable data access artifacts**


Scope to the target project only. List data access methods that interact with the database — repositories, DAOs, stored procedure callers, query builders.


**Step 3: Create seed data**


- Follow seed file location and naming conventions from the existing project.

- Reuse existing seed files when possible.

- Avoid `TRUNCATE TABLE` — keep existing database data intact.

- Do not commit seed data; tests run in transactions that roll back.

- Ensure seed data does not conflict with other tests.

- Load and verify seed data before assertions depend on it.


**Step 4: Write test cases**


- Inherit from the base test class to get automatic transaction create/rollback.

- Assert logical outputs (rows, columns, counts, error types), not platform-specific messages.

- Assert specific expected values — never assert that a value is merely non-null or non-empty when a concrete value is available from seed data.

- Avoid testing code paths that do not exist or asserting behavior that cannot occur.

- Avoid redundant assertions across tests targeting the same method.


**Step 5: Review determinism**


Re-examine every assertion against non-null values. Confirm each is deterministic against the seeded data. Fix any assertion that depends on database state outside the test's control.


Key Constraints


- **Oracle is the golden source** — tests capture Oracle's expected behavior.

- **DB-agnostic assertions** — no platform-specific error messages or syntax in assertions.

- **Seed only against Oracle** — test project will be migrated to PostgreSQL later.

- **Scoped to one project** — do not create tests for artifacts outside the target project.

🎯 Best For

  • QA engineers
  • Developers writing unit tests
  • Developers scaffolding new projects
  • Prototype builders
  • Claude users

💡 Use Cases

  • Generating test cases for edge conditions
  • Writing integration test suites
  • Bootstrapping React components
  • Creating API route handlers

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Creating-Oracle-To-Postgres-Migration-Integration-Tests to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this generate test mocks?

Many testing skills include mock generation. Check the install command and skill content for details.

Can I customize the generated output?

Yes — modify the skill's prompt instructions to match your project conventions and coding style.

Is Creating-Oracle-To-Postgres-Migration-Integration-Tests compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Creating-Oracle-To-Postgres-Migration-Integration-Tests?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Creating-Oracle-To-Postgres-Migration-Integration-Tests?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/creating-oracle-to-postgres-migration-integration-tests/SKILL.md, ready to use.

⚠️ Common Mistakes to Avoid

Not testing edge cases

AI tends to generate happy-path tests. Manually review for boundary conditions.

Using generated code without understanding

Understand what generated code does before shipping it to production.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills