NEW The website in nine languages. Read more →
Ulpi

create-tests-extract

SKILL

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

by Ulpi

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

  1. 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

All listings →