How to run all modified JUnit test classes?

slartidan :

I have an IntelliJ project, versioned in git.

How can I run all JUnit test classes, that I have modified since my last commit?

Andrey :

There is Changed Files predefined scope in Project tool window you can use to view all vcs changed files. From there select all JUnit classes and from the context menu create JUnit Run/Debug Configuration which will fill the classes pattern to run automatically.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=445038&siteId=1