Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Note on Python TIA (Test Impact Analysis)

Question:

What could I try for doing Test Impact Analysis for Python projects?

Answer:

There are a few libraries out there you could try. Here are some entrypoints:

Note that TIA is rarely perfect (especially imperfect in dynamic languages), so use with caution.

One pattern to consider is to use a mixed approach. I like to use TIA to exclude some slow tests on branches until they have a merge-request. So master, tags, and merge-requests run full suite. I'm using GitLabCI for this (only: ['merge_requests']) but you can do it with some other tools too.

Lastly here are some reading materials.

@hangtwenty

This comment has been minimized.

Copy link
Owner Author

hangtwenty commented Mar 28, 2019

copied from my answer here to help me remember it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.