Skip to content

tests/run.sh <file> runs the whole suite, not the file: the wrapper always passes tests and a path is added beside it #137

Open

Description

@brettheap

tests/run.sh builds python3 -m pytest tests -q "$@", so tests/run.sh tests/test_repo_hygiene.py runs tests AND that file — the whole suite, with the named file collected twice — rather than the one file a person named. Measured 2026-10-02 by lane openRepoTools-1: a run meant for the hygiene module sat behind another lane's suite and then ran the 45-minute test_lane_helpers_suite.py too; and -k help, meant for the usage tests, matched test_lane_helpers_suite by substring and ran the shell suite in full.

AGENTS.md documents tests/run.sh -k lane_helpers …and anything else pytest takes, and -k does scope. A path does not, which is the trap: it is the most natural thing to type and the wrapper's one job is to keep the workstation from running suites it did not mean to.

Wants: when any positional argument is a path under tests/, the wrapper should drop its own tests and pass the paths (keeping the lock and the guard); or refuse a path with one line naming -k and --ignore=. Plus a line in AGENTS.md's testing section saying how to run one module. Scoping with --ignore=<the other eight files> works today and is what the writer used.

Filed by lane openRepoTools-1; unclaimed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions