Save default startup configurations to repo for IntelliJ

I need to add flags for unit tests. And I want them to share them for all team members. IntelliJ has a solution for sharing startup configurations , but the share checkbox is not selected in the default configurations:

enter image description here

Of course, these settings are stored in idea/.workspace , but I do not want the storage repository to have all my stuff, for example, recent requests. Is there any solution for storing default startup configurations in the repository?

+1
intellij-idea
May 11 '17 at 1:01 pm
source share
1 answer

There is a workaround for passing general parameters to any JUnit run design configuration, which relies on the IntelliJ IDEA function to select maven confidence settings .

Thus, it is enough to add general parameters to the main pom:

 <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> 
0
Nov 27 '17 at 16:37
source share



All Articles