跳到正文
Skillpedia
测试40k · #7325

planning-oracle-to-postgres-migration-integration-testing

它能做什么

这个智能体会制定一份计划,用于测试软件项目中数据的访问和处理方式。它的重点是通过明确需要测试的内容,确保数据库从 Oracle 平稳迁移到 PostgreSQL。

适用场景

  • ✓当你的项目要把数据库从 Oracle 迁移到 PostgreSQL,需要规划测试时。
  • ✓当你需要了解代码中哪些访问数据库的部分需要测试时。
  • ✓在迁移数据库之前,准备测试文档时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/planning-oracle-to-postgres-migration-integration-testing/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/planning-oracle-to-postgres-migration-integration-testing/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我需要为 'MyApp.Core' 项目制定一份从 Oracle 迁移到 PostgreSQL 的测试计划。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会分析你的项目,找出与数据库交互的部分。然后生成一份详细文档,列出推荐的测试,并优先处理最复杂的区域或使用了 Oracle 特有功能的部分。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Planning Integration Testing for Oracle-to-PostgreSQL Migration

Analyze a single target project to identify data access artifacts that require integration testing, then produce a structured, actionable testing plan.

Workflow

Progress:
- [ ] Step 1: Identify data access artifacts
- [ ] Step 2: Classify testing priorities
- [ ] Step 3: Write the testing plan

Step 1: Identify data access artifacts

Scope to the target project only. Find classes and methods that interact directly with the database — repositories, DAOs, stored procedure callers, service layers performing CRUD operations.

Step 2: Classify testing priorities

Rank artifacts by migration risk. Prioritize methods that use Oracle-specific features (refcursors, TO_CHAR, implicit type coercion, NO_DATA_FOUND) over simple CRUD.

Step 3: Write the testing plan

Write a markdown plan covering:

  • List of testable artifacts with method signatures
  • Recommended test cases per artifact
  • Seed data requirements
  • Known Oracle→PostgreSQL behavioral differences to validate
  • Coverage mapping that ensures every database touchpoint has at least one test case (or a justified set of cases for high-risk methods)

When defining recommended test cases, explicitly include:

  • Text parameter behavior for both empty string and NULL/missing values.
  • Datetime/timezone assertions, including round-trip and comparison behavior.
  • Cases where destination columns use timestamp without time zone or timestamp(0), with explicit timezone-application expectations.

Output

Write the plan to: .github/oracle-to-postgres-migration/Reports/{TARGET_PROJECT} Integration Testing Plan.md

Key Constraints

  • Single project scope — only plan tests for artifacts within the target project.
  • Database interactions only — skip business logic that does not touch the database.
  • Oracle is the golden source — tests should capture Oracle's expected behavior for comparison against PostgreSQL.
  • No multi-connection harnessing — migrated applications are copied and renamed (e.g., MyApp.Postgres), so each instance targets one database.
常见问题

什么是 '数据访问相关的代码部分'?

指的是代码中负责读写数据库信息的部分,比如仓储(repository)、DAO 或服务层。

为什么要优先测试 Oracle 特有功能?

因为这些功能在 PostgreSQL 中的表现可能不同,仔细测试它们,才能确保迁移顺利完成。

智能体会替我编写测试吗?

不会。智能体只负责制定测试计划,你或你的团队需要根据计划编写并运行测试。

详情

作者的原始描述

Creates an integration testing plan for .NET data access artifacts during Oracle-to-PostgreSQL database migrations. Analyzes a single project to identify repositories, DAOs, and service layers that interact with the database, then produces a structured testing plan. Use when planning integration test coverage for a migrated project, identifying which data access methods need tests, or preparing fo

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7325
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能