<project>
...
<build>
...
<plugins>
...
<plugin>
<groupId>org.hyrts</groupId>
<artifactId>hyrts-maven-plugin</artifactId>
<version>${version}</version>
</plugin>
</plugins>
</build>
</project>
To perform basic HyRTS (hybrid method and file level RTS), run:
mvn hyrts:HyRTS
To run RTS in the offline mode (i.e., running selected tests without dependency collection), do:
mvn hyrts:HyRTS -DexecOnly=true
Note that the config works for all other RTS variants.
To perform HyRTS variants that transform different method-level changes into file changes, run:
mvn hyrts:HyRTS -DhybridLevel=[config-letter]
Where [config-letter] denotes transforming the corresponding method-level changes into file-level changes:
To perform HyRTSf (transforming instance method additions/deletions for better performance), run:
mvn hyrts:HyRTSf
Or
mvn hyrts:HyRTS -DhybridLevel=jk
To perform FRTS (pure file-level RTS), run:
mvn hyrts:FRTS
To clean HyRTS data, run:
mvn hyrts:clean
The plugin also enables collection of various coverage information. For more information, run:
mvn hyrts:help
All the files generated by the tool will be stored in a dir named “hyrts-files” (The dir will be located under each module of the Maven project). Different mojo runs may generate different files inside the corresponding dirs, e.g.,: