Scaffold Oracle Migration Test Project

Scaffold Oracle Migration Test Project

Scaffolds an xUnit integration test project for Oracle in a .NET solution, with a transaction-rollback base class and seed data manager for a PostgreSQL migration.

Skill files1 file
SKILL.md55 lines
1
---
2
name: scaffolding-oracle-to-postgres-migration-test-project
3
description: 'Scaffolds an xUnit integration test project targeting Oracle in .NET solutions. Creates the test project, transaction-rollback base class, and seed data manager. Use only during Phase 3, before writing Oracle baseline integration tests. Do not invoke during Phase 6 — the PostgreSQL test project is produced by migrating this project, not by running this skill again.'
4
---
5
6
# Scaffolding an Integration Test Project for Oracle-to-PostgreSQL Migration
7
8
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.
9
10
## Workflow
11
12
```
13
Progress:
14
- [ ] Step 1: Inspect the target project
15
- [ ] Step 2: Create the xUnit test project
16
- [ ] Step 3: Implement transaction-rollback base class
17
- [ ] Step 4: Implement seed data manager
18
- [ ] Step 5: Verify the project compiles
19
```
20
21
**Step 1: Inspect the target project**
22
23
Read the target project's `.csproj` to determine the .NET version and existing package references. Match these versions exactly — do not upgrade.
24
25
**Step 2: Create the xUnit test project**
26
27
- Target the same .NET version as the application under test.
28
- Add NuGet packages for Oracle database connectivity (`Oracle.ManagedDataAccess.Core`) and xUnit.
29
- Add a project reference to the target project only — no other application projects.
30
- Add an `appsettings.json` configured for Oracle database connectivity.
31
32
**Step 3: Implement transaction-rollback base class**
33
34
- Create a base test class that opens a transaction before each test and rolls it back after.
35
- Catch and handle all exceptions to guarantee rollback.
36
- Make the pattern inheritable by all downstream test classes.
37
38
**Step 4: Implement seed data manager**
39
40
- Create a global seed manager for loading test data within the transaction scope.
41
- Do not commit seed data — transactions roll back after each test.
42
- Do not use `TRUNCATE TABLE` — preserve existing database data.
43
- Establish a naming convention for seed file location that downstream test creation will follow.
44
45
**Step 5: Verify the project compiles**
46
47
Build the test project and confirm it compiles with zero errors before finishing.
48
49
## Key Constraints
50
51
- **Phase 3 only** — this skill scaffolds the Oracle-targeting test project. The PostgreSQL test project (Phase 6) is created by copying and migrating this project; do not run this skill again at that point.
52
- Oracle is the golden behavior source — scaffold for Oracle only, not PostgreSQL.
53
- Keep to existing .NET and C# versions; do not introduce newer language or runtime features.
54
- Output is an empty test project with infrastructure only — no test cases.
55

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,258 prompts

More by @OpenSourceBuffGuy

See all
Instax Mini 11 E-commerce Infographic Ad prompt image

Instax Mini 11 E-commerce Infographic Ad

Creates an e-commerce infographic ad for a blush-pink instant camera, with a model holding it, floating cameras, prism flares and feature callouts in bold type.

image-prompt, product-photography, infographic, poster, text-rendering, photorealistic, studio-lighting, bokeh, macro, fashion-shoot, woman, editorial, pastel, vibrant-colors, advertising, ecommerce, for-online-sellers, for-marketers, gpt-image, long-form, close-up

Rem scoops fallen desktop icons back into place prompt image

Rem scoops fallen desktop icons back into place

Animates a reference image of an anime maid whose skirt knocks desktop icons to the screen bottom, then she hurriedly puts them back, in a locked-camera beat sheet.

video-prompt, anime, image-to-video, reference-image, timed-beats, single-take, humorous, animation, character-consistency, guardrails, hailuo, widescreen, kawaii, sound-effects, background-music, quick, camera-movement, character-design

Patent Research Expert prompt image

Patent Research Expert

Turns the AI into a patent researcher who plans searches, maps patent landscapes, compares prior art and assesses freedom-to-operate risk, keeping findings separate from legal conclusions.

system-prompt, act-as, expert-advice, due-diligence, legal-research, competitor-analysis, intellectual-property, legal, research-methods, for-lawyers, for-researchers, report, structured-output, xml-tags, formal, advanced, long-form, guardrails, trend-analysis, risk-management

Reviews

Loading reviews…

Discussion

Loading comments…