将默认运行配置保存在IntelliJ的存储库中 [英] Save default run configurations in the repo for IntelliJ
问题描述
我需要为单元测试添加一些标志,并希望将其共享给所有团队成员.
当然,这些设置存储在 idea/.workspace
中,但是我不想将所有东西(例如最近的搜索)存储到存储库中.有什么解决方案可以将默认运行配置存储在存储库中?
有一种解决方法,可以将常见参数传递给依赖IntelliJ IDEA的 I need to add some flags for unit tests, and want to share them for all team members. IntelliJ has a solution to share run configurations, but default configurations doesn't have Of course, these settings are stored in There is a workaround to pass common params to any project's JUnit run configuration which relies on IntelliJ IDEA's feature of picking maven surefire settings. So it's sufficient to add common params to the main pom:
这篇关于将默认运行配置保存在IntelliJ的存储库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!< plugin>< groupId> org.apache.maven.plugins</groupId>< artifactId> maven-surefire-plugin</artifactId><配置><!-强制使用7位默认编码,以确保没有任何依赖--><!-在每次运行时获取JFR分析快照->< argLine> -Dfile.encoding = ASCII -Xmx512M -XX:+ HeapDumpOnOutOfMemoryError -XX:+ UnlockCommercialFeatures -XX:+ FlightRecorder -XX:StartFlightRecording = name = EcpTest,持续时间= 999s,文件名= target/ecp.jfr,设置=profile</argLine></configuration></plugin>
share
checkbox:idea/.workspace
, but I don't want to store to the repository all my stuff, like recent searches. Is there any solution to store default run configurations in the repository?<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- force 7-bit default encoding to ensure that nothing depends on it -->
<!-- take JFR profiling snapshot on each run -->
<argLine>-Dfile.encoding=ASCII -Xmx512M -XX:+HeapDumpOnOutOfMemoryError -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:StartFlightRecording=name=EcpTest,duration=999s,filename=target/ecp.jfr,settings=profile</argLine>
</configuration>
</plugin>