Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一组单元测试,使用单音,所以每个测试都会影响另一个(不需要的行为)。我可以使用 intellij 12 junit 插件在自己的 JVM 实例(fork=yes)中运行每个测试吗?
我相信您在运行/调试配置中追求的是什么。
运行 --> 编辑配置 --> 默认值 --> JUnit
在配置选项卡的右上角有 Fork Mode
在默认情况下,这可以更改为none或method,如果您选择特定的运行配置,您也可以设置class为
none
method
class