|
1 | | -# unit5-tag-check-maven-plugin |
| 1 | +# junit5-tag-check-maven-plugin |
2 | 2 |
|
3 | 3 | A simple plugin to check the presence of JUnit5 test by tags. |
4 | 4 |
|
5 | 5 | [](CHANGELOG.md) |
6 | | -[](https://central.sonatype.com/artifact/org.fugerit.java/unit5-tag-check-maven-plugin) |
| 6 | +[](https://central.sonatype.com/artifact/org.fugerit.java/junit5-tag-check-maven-plugin) |
7 | 7 | [](https://opensource.org/licenses/Apache-2.0) |
8 | | -[](https://sonarcloud.io/summary/new_code?id=fugerit-org_unit5-tag-check-maven-plugin) |
9 | | -[](https://sonarcloud.io/summary/new_code?id=fugerit-org_unit5-tag-check-maven-plugin) |
| 8 | +[](https://sonarcloud.io/summary/new_code?id=fugerit-org_junit5-tag-check-maven-plugin) |
| 9 | +[](https://sonarcloud.io/summary/new_code?id=fugerit-org_junit5-tag-check-maven-plugin) |
10 | 10 |
|
11 | | -Accepted config params are : |
12 | | -* configPath |
13 | | -* idCatalog |
14 | | - |
15 | | -Here a sample configuration : |
| 11 | +Here a sample configuration |
16 | 12 |
|
17 | 13 | ``` |
18 | | - <plugin> |
19 | | - <groupId>org.fugerit.java</groupId> |
20 | | - <artifactId>unit5-tag-check-maven-plugin</artifactId> |
21 | | - <version>${openapi-doc-version}</version> |
22 | | - <configuration> |
23 | | - <configPath>src/config/openapi-doc-config.xml</configPath> |
24 | | - <idCatalog>openapi</idCatalog> |
25 | | - </configuration> |
26 | | - <executions> |
27 | | - <execution> |
28 | | - <id>openapi</id> |
29 | | - <goals> |
30 | | - <goal>generate</goal> |
31 | | - </goals> |
32 | | - </execution> |
33 | | - </executions> |
34 | | - </plugin> |
| 14 | + <plugin> |
| 15 | + <groupId>org.fugerit.java</groupId> |
| 16 | + <artifactId>junit5-tag-check-maven-plugin</artifactId> |
| 17 | + <version>${junit5-tag-check-maven-plugin-version}</version> |
| 18 | + <executions> |
| 19 | + <execution> |
| 20 | + <id>report-executed-test-tags</id> |
| 21 | + <phase>verify</phase> |
| 22 | + <goals> |
| 23 | + <goal>report-executed-tags</goal> |
| 24 | + </goals> |
| 25 | + <configuration> |
| 26 | + <format>html</format> |
| 27 | + <outputFile>${project.build.directory}/executed-test-tag-report.html</outputFile> |
| 28 | + <requiredTags> |
| 29 | + <requiredTag>security</requiredTag> |
| 30 | + <requiredTag>authorized</requiredTag> |
| 31 | + <requiredTag>unauthorized</requiredTag> |
| 32 | + <requiredTag>forbidden</requiredTag> |
| 33 | + </requiredTags> |
| 34 | + <failOnMissingTag>true</failOnMissingTag> |
| 35 | + </configuration> |
| 36 | + </execution> |
| 37 | + </executions> |
| 38 | + </plugin> |
35 | 39 | ``` |
0 commit comments