Skip to content

how to exclude the java package for AOP with Aspect J #86

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
chp008 opened this issue Aug 7, 2020 · 1 comment
Closed

how to exclude the java package for AOP with Aspect J #86

chp008 opened this issue Aug 7, 2020 · 1 comment

Comments

@chp008
Copy link

chp008 commented Aug 7, 2020

issue 1:
Project Package
java
com.aspects
-- log.java
scala
-- function.scala

i want to exclude the java package for unit test coverage, then i change my pom.xml
org.scoverage
scoverage-maven-plugin
${scoverage.plugin.version}

80
false
(empty);com.aspects.
com.aspects.log

it does not work.

issue 2:
i make a workaround for it. i write the unit test for log.java. i can see the unit test is execution. but the sonar report still saying the coverage is zero for log.java

@jozic
Copy link
Collaborator

jozic commented Dec 23, 2023

Hi @chp008
this plugin instruments only Scala code and thus it can't get coverage from Java code. You probably need to collect coverage for Scala and Java separately. Not sure if Sonar can combine those for you.

@jozic jozic closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 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