-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add aggregate test coverage collection of gax within the showcase and gax modules #1430
Changes from 12 commits
d7c919a
135022c
d2be02f
22cda89
cd0de15
cddb9f2
c116da1
208cfff
02ef0cb
7f720b8
68557fe
57ddf93
fcc5257
45a0987
47cf349
d86667f
42f13c0
f813b69
47fc1db
879784b
5db0d69
31365de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?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> | ||
<groupId>com.google.cloud</groupId> | ||
<artifactId>coverage-report</artifactId> | ||
<packaging>pom</packaging> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<name>Jacoco Aggregrate Test Coverage Report</name> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<checkstyle.skip>true</checkstyle.skip> | ||
<clirr.skip>true</clirr.skip> | ||
<enforcer.skip>true</enforcer.skip> | ||
<maven.compiler.release>8</maven.compiler.release> | ||
<fmt.skip>true</fmt.skip> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.google.cloud</groupId> | ||
<artifactId>gapic-showcase</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax</artifactId> | ||
<version>2.23.3-SNAPSHOT</version> <!-- {x-version-update:gax:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax-grpc</artifactId> | ||
<version>2.23.3-SNAPSHOT</version> <!-- {x-version-update:gax:current} --> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.api</groupId> | ||
<artifactId>gax-httpjson</artifactId> | ||
<version>0.108.3-SNAPSHOT</version> <!-- {x-version-update:gax:current} --> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.jacoco</groupId> | ||
<artifactId>jacoco-maven-plugin</artifactId> | ||
<version>0.8.8</version> | ||
<executions> | ||
<execution> | ||
<id>unit-tests-report-aggregate</id> | ||
<goals> | ||
<goal>report-aggregate</goal> | ||
</goals> | ||
<phase>test</phase> | ||
</execution> | ||
<execution> | ||
<id>integration-tests-report-aggregate</id> | ||
<goals> | ||
<goal>report-aggregate</goal> | ||
</goals> | ||
<phase>integration-test</phase> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>com.coveo</groupId> | ||
<artifactId>fmt-maven-plugin</artifactId> | ||
<version>2.9</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
|
||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,6 +222,7 @@ | |
<artifactId>maven-jar-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>test</phase> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure! This line helps resolve the compilation error we see when running There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<goals> | ||
<goal>test-jar</goal> | ||
</goals> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ | |
<module>java-common-protos</module> | ||
<module>java-iam</module> | ||
<module>gapic-generator-java-bom</module> | ||
<module>showcase</module> | ||
burkedavison marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding these two modules to the root pom here may have impact to our release, that they might be released automatically. @suztomo Do you have any concerns here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mpeddada1 To address the concern of accidental releases, can we define a profile so that the showcase module is part of the root project only when the profile is enabled? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea! Done. |
||
<module>coverage-report</module> | ||
</modules> | ||
<!-- Do not deploy the aggregator POM --> | ||
<build> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description does a great job clarifying how this is meant to be used, but that may get lost in obscurity once the PR is merged. Could you add some information in an appropriate
.md
to explain the different expected workflows + report options?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, done. I've added a README to the
coverage-report
module.