Skip to content

ref(tox): Allow overriding TESTPATH via env var for targeted test runs#5699

Merged
sl0thentr0py merged 1 commit intomasterfrom
neel/fix-testing-agents
Mar 18, 2026
Merged

ref(tox): Allow overriding TESTPATH via env var for targeted test runs#5699
sl0thentr0py merged 1 commit intomasterfrom
neel/fix-testing-agents

Conversation

@sl0thentr0py
Copy link
Member

Description

Allows better agentic testing flow.

Rename internal TESTPATH to _TESTPATH in setenv and add TESTPATH to passenv.
The pytest command now uses {env:TESTPATH:{env:_TESTPATH}}, so setting TESTPATH externally overrides the default test path. This allows running specific test files without the --override workaround:

  TESTPATH=tests/integrations/logging/test_logging.py tox -e py3.14-common

Rename internal TESTPATH to _TESTPATH in setenv and add TESTPATH to
passenv. The pytest command now uses {env:TESTPATH:{env:_TESTPATH}},
so setting TESTPATH externally overrides the default test path. This
allows running specific test files without the --override workaround:

  TESTPATH=tests/integrations/logging/test_logging.py tox -e py3.14-common

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sl0thentr0py sl0thentr0py requested a review from a team as a code owner March 18, 2026 14:34
@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR will not appear in the changelog.


🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

Codecov Results 📊

1850 passed | ⏭️ 170 skipped | Total: 2020 | Pass Rate: 91.58% | Execution Time: 3m 15s

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 11932 uncovered lines.


Generated by Codecov Action

@sl0thentr0py sl0thentr0py enabled auto-merge (squash) March 18, 2026 14:45
@sl0thentr0py sl0thentr0py merged commit 5d6cf7e into master Mar 18, 2026
167 of 171 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/fix-testing-agents branch March 18, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants