-
-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Javalin SSL and Coverage modules * Add Readme for coverage module and badges.
- Loading branch information
1 parent
2dce81a
commit 8f60d44
Showing
6 changed files
with
178 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Javalin Utils - Coverage | ||
|
||
This module is used for Jacoco code coverage report aggregation. | ||
|
||
## Jacoco Report Path | ||
|
||
The Jacoco report can be found at the following path, relative to the root of the project: | ||
|
||
`javalin-utils/coverage/target/site/jacoco-aggregate/jacoco.xml` | ||
|
||
## Generating the Jacoco Report | ||
|
||
To generate the Jacoco report, run the following command from the root of the project: | ||
|
||
`mvn clean verify` | ||
|
||
## Viewing the Jacoco Report | ||
|
||
The Jacoco report can be viewed by opening the following file in a web browser: | ||
|
||
`javalin-utils/coverage/target/site/jacoco-aggregate/index.html` | ||
|
||
Or by using Codecov to view the report online here: [![codecov](https://codecov.io/gh/javalin/javalin/graph/badge.svg?token=3L3CvpyMPI)](https://codecov.io/gh/javalin/javalin) | ||
|
||
## Coverage graphs | ||
|
||
### Sunburst | ||
|
||
[![codecov](https://codecov.io/gh/javalin/javalin/graphs/sunburst.svg?token=3L3CvpyMPI | ||
)](https://codecov.io/gh/javalin/javalin) | ||
|
||
### Icicle | ||
|
||
[![codecov](https://codecov.io/gh/javalin/javalin/graphs/icicle.svg?token=3L3CvpyMPI | ||
)](https://codecov.io/gh/javalin/javalin) | ||
|
||
### Treemap / Grid | ||
|
||
[![codecov](https://codecov.io/gh/javalin/javalin/graphs/treemap.svg?token=3L3CvpyMPI | ||
)](https://codecov.io/gh/javalin/javalin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>io.javalin</groupId> | ||
<artifactId>javalin-utils</artifactId> | ||
<version>6.1.1-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>coverage</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Jacoco Coverage Report</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.javalin</groupId> | ||
<artifactId>javalin</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.javalin</groupId> | ||
<artifactId>javalin-testtools</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.javalin</groupId> | ||
<artifactId>javalin-micrometer</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.javalin</groupId> | ||
<artifactId>javalin-context-mock</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.javalin</groupId> | ||
<artifactId>javalin-rendering</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.javalin.community.ssl</groupId> | ||
<artifactId>ssl-plugin</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-install-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.jacoco</groupId> | ||
<artifactId>jacoco-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>report-aggregate</goal> | ||
</goals> | ||
<configuration> | ||
<dataFileIncludes> | ||
<dataFileInclude>**/jacoco.exec</dataFileInclude> | ||
</dataFileIncludes> | ||
<outputDirectory>${project.reporting.outputDirectory}/jacoco-aggregate</outputDirectory> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
|
||
<modules> | ||
<module>javalin-context-mock</module> | ||
<module>coverage</module> | ||
</modules> | ||
|
||
<properties> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters