简体   繁体   中英

intellij idea run test for all uncommitted changes only

At times we have ~100 java files in uncommitted changes, result of a big refactoring. Some of those are test files as well.

I have 2 related questions here:

  1. Is there any way I can run tests for all uncommitted test files ?
  2. Is there any way I can run tests for uncommitted test files as well as tests of my uncommitted source files ?

IntelliJ IDEA 没有在“未提交的文件”范围内运行测试的工具。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM