Skip to content

Not able to get Aggregate report #130

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

Closed
dinesh21894 opened this issue Jul 30, 2023 · 2 comments
Closed

Not able to get Aggregate report #130

dinesh21894 opened this issue Jul 30, 2023 · 2 comments

Comments

@dinesh21894
Copy link

I've made use of aggregate flag, but i couldn't see aggregate report getting generated on my scala project(i got module level reports though).
I have had the flags both in super/parent POMs of my multimodule project.

<aggregateOnly>true</aggregateOnly>
                            <aggregate>true</aggregate>
                            

module level config:

            <plugin>
                <groupId>org.scoverage</groupId>
                <artifactId>scoverage-maven-plugin</artifactId>
            </plugin>

Below is full config added in super POM.

                    <plugin>
                        <groupId>org.scoverage</groupId>
                        <artifactId>scoverage-maven-plugin</artifactId>
                        <version>1.4.11</version>
                        <configuration>
                            <aggregateOnly>true</aggregateOnly>
                            <aggregate>true</aggregate>
                            <highlighting>true</highlighting>
                            <scalaVersion>2.13</scalaVersion>
                            <additionalForkedProjectProperties>skipTests=false</additionalForkedProjectProperties>
                            <scalacPluginVersion>1.4.11</scalacPluginVersion>
                            <failOnMinimumCoverage>true</failOnMinimumCoverage>
                        </configuration>
                        <executions>
                            <execution>
                                <id>coverage-check</id>
                                <phase>test</phase>
                                <goals>
                                    <goal>report</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>coverage-report</id>
                                <phase>prepare-package</phase>
                                <goals>
                                    <goal>check-only</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
@jozic
Copy link
Collaborator

jozic commented Dec 23, 2023

@dinesh21894 is this still relevant?
have you tried setting only one flag?

@jozic
Copy link
Collaborator

jozic commented Dec 27, 2023

@dinesh21894 please check https://github.com/scoverage/scoverage-maven-plugin/tree/master/src/it/test_aggregate and https://github.com/scoverage/scoverage-maven-plugin/tree/master/src/it/test_aggregate_only as references.
Those test verify that it works. So i will close this for now. But please reopen with more details if needed.

@jozic jozic closed this as completed Dec 27, 2023
@jozic jozic closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants