Skip to content

Every test file's dependencies are installed, wherever under tests/ it sits #246

Open

Description

@ooloth

Current state

A test file nested below a tests/ folder runs without its declared dependencies, and nothing reports it. scripts/checks/tests.bash passes a file's inline header to uv run --with-requirements only for tests/test_*.py files found at exactly depth 3 (find -mindepth 3 -maxdepth 3). pytest collects test files at any depth, so a deeper file is run, but its header is never installed. A deeper file with no header doesn't fail the run either, though tests.bash says a file with no header does.

Ideal state

  • Every test file pytest collects from a tests/ folder has its header's dependencies installed for the run
  • A test file under a tests/ folder with no header fails the run, at any depth

Decisions

Constraints

Open

No open decisions.

Starting points

  • scripts/checks/tests.bash
  • docs/decisions/001-tool-tests-live-in-a-tests-folder-that-ci-discovers.md
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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions