A simple plugin to check the presence of JUnit5 test by tags.
| parameter | type | required | notes |
|---|---|---|---|
| format | string | false | default 'text', accepts 'html', 'json', 'xml' |
| outputFile | string | true | path where should be produced the report |
| requiredTags.requiredTag | string | true | tag to be checked |
| failOnMissingTag | boolean | true | if set to 'true' the build will fail on missing tags |
Here is a sample configuration
<plugin>
<groupId>org.fugerit.java</groupId>
<artifactId>junit5-tag-check-maven-plugin</artifactId>
<version>${junit5-tag-check-maven-plugin-version}</version>
<executions>
<execution>
<id>report-executed-test-tags</id>
<phase>verify</phase>
<goals>
<goal>report-executed-tags</goal>
</goals>
<configuration>
<format>html</format>
<outputFile>${project.build.directory}/executed-test-tag-report.html</outputFile>
<requiredTags>
<requiredTag>security</requiredTag>
<requiredTag>authorized</requiredTag>
<requiredTag>unauthorized</requiredTag>
<requiredTag>forbidden</requiredTag>
</requiredTags>
<failOnMissingTag>true</failOnMissingTag>
</configuration>
</execution>
</executions>
</plugin>