site.apt.usage.apt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of muto Show documentation
Show all versions of muto Show documentation
Automated Mutation Testing Framework
The newest version!
------
Muto Plugin Usage Example
------
Myk Kolisnyk
------
2014-06-03
Overview
Muto plugin has 2 major modes:
* Prepare and perform mutation testing. By default it is performed during <> phase.
* Generate report based on results. By default it is performed during <> phase.
Initiate Mutation Testing
Mutation testing is initiated within <> configuration. All available parameters can be split into the following groups:
* <> - define major workspace parameters like initial location where the sources are taken from, destination location and various include/exclude masks.
* <> - identify lists of rules to be applied during mutation testing.
* <> - define which command is to be run and where results can be found
Here is basic example of Muto run initialising:
+------+
...
com.github.mkolisnyk
muto
${project.version}
.
target/muto/workspace
\\.git
target
src/site
(.*).java
mvn clean test
target/muto/workspace/target/surfire
target/muto
...
...
+------+
This action can be activated using the following command line:
+------+
mvn muto:process
+------+
More detailed examples can be found on the {{{./examples/muto-process-example.html}Muto Processing Examples}} page.
Generate Maven Report
Reporting requires just the location of the final mutation testing results report containing joint run information. Typical report generation can be initialised the following way:
+------+
...
com.github.mkolisnyk
muto
${project.version}
src/test/resources/reporting
...
+------+
This action can be activated using the following command line:
+------+
mvn muto:muto-report
+------+
More detailed examples can be found on the {{{./examples/muto-reporting-example.html}Muto Reporting Examples}} page.