Skip to content

Add pytest-tia to Speed - #158

Open
breadMSA wants to merge 1 commit into
cleder:mainfrom
breadMSA:add-pytest-tia
Open

breadMSA wants to merge 1 commit into
cleder:mainfrom
breadMSA:add-pytest-tia

Conversation

@breadMSA

@breadMSA breadMSA commented Nov 27, 2026 •

Copy link
Copy Markdown

Submission

  • Project: github.com/breadMSA/pytest-tia
  • PyPI: pypi.org/project/pytest-tia
  • License: MIT
  • Section: Speed

What it does and why it belongs here

A pytest plugin that records which functions each test executes and, on later runs, selects only the tests whose recorded code or data files changed. Unlike pytest-testmon and pytest-picked, it maps changes at function level and also tracks non-Python dependencies (JSON, templates, etc.), falling back to file-level selection where static mapping can't be trusted (getattr by computed name, importlib, eval). Benchmarks against real project histories (Flask, boltons) are in the repo under benchmark/.

Checklist

  • It is a Python project or a resource about testing Python code.
  • It is open source under an OSI-approved license. It is not a commercial SaaS, a hosted platform, or a client for one.
  • It is maintained, documented, and used by people other than its author.
  • This pull request adds only one entry.
  • The entry is in alphabetical order within its section.
  • The entry has the format - [name](link) - Description., and the description is short and contains no marketing language.
  • I am the author or maintainer of this project: yes

Summary by Sourcery

New Features:

  • Add pytest-tia to the Speed section of the testing resources list.

@semanticdiff-com

Copy link
Copy Markdown

Review changes with  SemanticDiff

@sourcery-ai

sourcery-ai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Documentation

Add pytest-tia to the Speed section of the README with a summary of its test-selection approach.

  • README.md L216

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

No findings to report

Grey Divider

Tip of the day
💡 Did you know, you can commit Qodo's fix in one click with committable suggestions (GitHub & GitLab)

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

⚠️ Qodo did not complete this review — the change was judged trivial and was not reviewed — so this is not a clean bill of health, and approval was withheld.

Qodo Logo

@qodo-code-review

qodo-code-review Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Add pytest-tia to the Speed resources

📝 Documentation 🕐 Less than 5 minutes

Grey Divider

AI Description

• Add pytest-tia to the Speed section for readers seeking affected-test selection.
• Describe its function-level coverage maps and non-Python file dependency tracking.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit 4e90b67
High-Level Assessment

A concise entry alongside related test-selection tools is appropriate; no architectural alternative is warranted for this documentation-only change.

Files changed (1) +1 / -0

Documentation (1) +1 / -0
README.mdList pytest-tia under Speed +1/-0

List pytest-tia under Speed

• Adds a link to pytest-tia and describes its affected-test selection using function-level coverage maps and non-Python file dependencies.

README.md

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@llamapreview llamapreview Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LlamaPReview — Verification needed

Whether pytest-tia selects tests using function-level coverage, tracks non-Python dependencies, and falls back to file-level selection for unreliable static mappings such as computed getattr, importlib, and eval.

Owner action: Check the linked project’s implementation or tests for each advertised behavior.

Review details and evidence

Material unknowns

  • Whether pytest-tia selects tests using function-level coverage, tracks non-Python dependencies, and falls back to file-level selection for unreliable static mappings such as computed getattr, importlib, and eval. Verification of these behaviors would support the listing; a mismatch would require correcting its claims or the plugin.

LlamaPReview checks

  • Reviewed changed regions in README.md.

LlamaPReview is open source. Explore the code behind this review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant