Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 1.14 KB

testproperties.md

File metadata and controls

31 lines (27 loc) · 1.14 KB

test.properties

Takari plugin testing harness requires presence of test.properties file on project test classpath. This file is used to pass various aspects of the running "outer" build to the test jvm. This includes project groupId, artifactId and version, location of user settings.xml and local repository, and so on.

For projects using takari-maven-plugin packaging type, test.properties file is generated by takari-lifecycle-plugin:testProperties goal bound to the project default lifecycle. No explicit configuration is necessary.

For other project types, like takari-jar for example, generation of test.properties file must be explicitly configured in project pom.xml file.

<plugin>
  <groupId>io.takari.maven.plugins</groupId>
  <artifactId>takari-lifecycle-plugin</artifactId>
  <version>${takariLifecycleVersion}</version>
  <extensions>true</extensions>
  <executions>
    <execution>
      <id>testProperties</id>
      <phase>process-test-resources</phase>
      <goals>
        <goal>testProperties</goal>
      </goals>
    </execution>
  </executions>
</plugin>