I do not believe that there is such an out of the box solution that you can use. However, you could have the script do this in your language of choice to find the βfiles modified in the last commitβ that you can execute
git diff --name-only HEAD~
HEAD~ is a reference to the "penultimate" commit, indicating only one commit reference to the git diff , which is automatically compared to HEAD , which is the last commit.
You can take the result of this and iterate over it, perhaps if your test classes follow the same naming scheme for your classes to test the execution of tests by specifying a template for each file?
source share