# create-tests-extract

Preserves the original visibility model and touches production code only as far as wiring requires.

- Type: Skill
- Updated: 25 Nov 2026
- Publisher: Ulpi
- Licence: LicenseRef-Ulpi-Proprietary

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Preserves the original visibility model and touches production code only as far as wiring requires — never silently downgrades private unit tests into weaker public-API integration tests. Use when the user asks to split large inline tests out of a source file.

## How to set it up

Move a bulky inline test block out of its source file WITHOUT weakening it — same coverage, same private access: read the source and its inline tests, pick the smallest safe extraction boundary (an adjacent, not a top-level, when private access matters), move tests and their helpers with names and attributes intact plus the minimal module wiring, then run the narrowest relevant tests.

```
#[cfg(test)] mod
```

```
tests/
```

## More from the Marketplace

- [cro](https://www.ulpi.io/en/marketplace/skills/cro): When the user wants more conversions from a page or form, or asks why a page isn't converting, what to change first.
- [customer-research](https://www.ulpi.io/en/marketplace/skills/customer-research): When the user wants to run or synthesize customer research, or asks what customer quotes, reviews, or feedback really mean, what is safe to conclude.
- [define-goal](https://www.ulpi.io/en/marketplace/skills/define-goal-05c15d): Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an objective.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
