Save to file IntelliJ Run Configuration

I had to configure a run configuration so that I could run all JUnit Tests in Gragle Multi-Module Project.

Then I wanted to port this configuration from one IntelliJ instance to another.

1 Define the JUnit Run Configuration on the parent project

Define the JUnit Run Configuration on the parent project which runs all the tests in all the subProjects

2 Click on Store as project file

<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="ALL_Loyalty" type="JUnit" factoryName="JUnit">
    <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" />
    <option name="ALTERNATIVE_JRE_PATH" value="temurin-17" />
    <option name="MAIN_CLASS_NAME" value="" />
    <option name="METHOD_NAME" value="" />
    <option name="TEST_OBJECT" value="pattern" />
    <option name="TEST_SEARCH_SCOPE">
      <value defaultName="wholeProject" />
    </option>
    <patterns>
      <pattern testClass=".*" />
    </patterns>
    <method v="2">
      <option name="Make" enabled="true" />
    </method>
  </configuration>
</component>