Repository navigation
How The Plan Ranks Files
tw.py plan reads every .cs, .ts, .tsx, .js, .mjs, .py, .luau and .lua file under the folder. It skips .git, node_modules, bin, obj, Library, Temp, .venv, venv, __pycache__, dist, build, Packages, Logs, UserSettings and any folder starting with a dot, and stops after 20,000 files.
A file is a test when its name matches the test-file pattern lint uses, or when its folder path contains test anywhere (case-insensitive). Test files are not ranked, so a source file under a folder such as contests/ is never ranked either.
Each pattern is counted case-insensitively in the file's text, capped at 5 matches, and multiplied by its weight:
| Risk label | Weight | Matches words such as |
|---|---|---|
| money or economy | 5 | price, payment, money, currency, gold, coin, purchase, refund, balance, wallet, invoice |
| saves and persistence | 5 | save, load, serialize, deserialize, PlayerPrefs, DataStore, persist, migration |
| data loss | 4 | delete, remove, drop, truncate, overwrite, rmtree, unlink |
| security | 4 | auth, password, token, permission, secret |
| randomness (seed it to test) | 2 | random, seed, Random., Math.random
|
| concurrency | 2 | async, await, Task<, Coroutine, thread, lock |
| public surface | 1 | a line that starts with public or export
|
A file that matches nothing scores zero and is not listed.
A file is marked tested when its name without extension appears inside the joined names of the test files (payment inside test_payment). Otherwise it is NO TEST and its score is doubled. The match is a substring, so a short name such as io is marked tested by an unrelated test_ratio.
python scripts/tw.py plan evals/fixtures/shop --top 5 50 NO TEST payment.py (money or economy)
30 NO TEST models.py (money or economy)
30 NO TEST save.py (saves and persistence)
The score ranks files; it is not a coverage target. The skill reads the top ten and skips getters, framework glue and generated code.
This wiki describes testwright 0.1.0 and was last updated on 2026-11-21. The plugin is MIT licensed. Report problems in the issues.
Using it
The releases
Contributing
Elsewhere