Skip to content

Instantly share code, notes, and snippets.

@floer32
Last active March 28, 2019 21:40
Show Gist options
  • Save floer32/3d96be9981925fafe4f3367d5ddbc56a to your computer and use it in GitHub Desktop.
Save floer32/3d96be9981925fafe4f3367d5ddbc56a to your computer and use it in GitHub Desktop.
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.

@floer32
Copy link
Author

floer32 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