Skip to content

fugerit-org/junit5-tag-check-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

junit5-tag-check-maven-plugin

A simple plugin to check the presence of JUnit5 test by tags.

Keep a Changelog v1.1.0 badge Maven Central license Quality Gate Status Coverage

Configuration reference

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>

About

A simple plugin to check presence of JUnit5 test by tags

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages