Running tests for given commit (or set of files)

IDEA has a nice feature that allows to see tests for a given class by pressing Ctrl + Shift + T. However, it would be great if one could select a commit, find tests for each modified class and run them to be reasonably sure that the changes have not broken anything. In the project that I am working on tests run on CI for over an hour. However, often the changes are pretty local, and running only the tests that are affected would take just several minutes and bugs would be detected quicker.

As far as I know, IDEA does not have such a feature out of the box. Maybe there exists a plugin that solves the problem? The only one I found is https://github.com/davearata/checktests. However, with this plugin I get compilation errors on tests ('could not find symbol ..') that run just fine with usual IDEA run configuration.

请先登录再写评论。