Skip to content
Browse files
Add aggregate coverage report
This is used to report coverage across all modules for the multi-module
project, e.g. use of the legacy.exception and jdkmath packages.
  • Loading branch information
aherbert committed Jun 13, 2022
1 parent 294589d commit e85dd59990a3b47793f5a26ac27e88a9f5ee9e53
Showing 3 changed files with 124 additions and 4 deletions.
@@ -41,11 +41,10 @@ jobs:
distribution: adopt
java-version: ${{ }}
- name: Build with Maven
run: mvn -V test jacoco:report --no-transfer-progress
- name: Build with Maven including the docs-archive module using a profile
run: mvn -V -Pdocs test jacoco:report-aggregate --no-transfer-progress

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
# commons-math-core module current skips jacoco report
files: ./commons-math-neuralnet/target/site/jacoco/jacoco.xml,./commons-math-transform/target/site/jacoco/jacoco.xml,./commons-math-legacy-exception/target/site/jacoco/jacoco.xml,./commons-math-legacy-core/target/site/jacoco/jacoco.xml,./commons-math-legacy/target/site/jacoco/jacoco.xml
files: ./docs-archive/target/site/jacoco-aggregate/jacoco.xml
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
<project xmlns="" xmlns:xsi="" xsi:schemaLocation="">


<!-- do not set packaging to pom, because otherwise we will receive
"Not executing Javadoc as the project is not a Java classpath-capable package" -->

<name>Apache Commons Math Documentation</name>
<description>Aggregator module to genenerate Apache Commons Math documentation.</description>

<!-- Workaround to avoid duplicating config files. -->
<!-- Skip build defaults -->
<!-- Simple site -->

<!-- Depend on all other modules -->

<!-- Create an aggregate report from the *parent* directory using:
mvn jacoco:report-aggregate -P docs
Requires that 'mvn test' has already been run with the jacoco user agent.
If executed within this directory then jacoco does not collect the
executions from the module dependencies. -->
<title>Apache Commons Math</title>
<footer>Code Coverage Report for Apache Commons Math ${project.version}</footer>

@@ -860,6 +860,14 @@ This is avoided by creating an empty directory when svn is not available.

<!-- Include an aggregate module to build test coverage reports -->


0 comments on commit e85dd59

Please sign in to comment.