Skip to content
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

JaCoCo: test files not considered #77

Open
CCFenner opened this issue Sep 3, 2018 · 0 comments
Open

JaCoCo: test files not considered #77

CCFenner opened this issue Sep 3, 2018 · 0 comments

Comments

@CCFenner
Copy link
Contributor

CCFenner commented Sep 3, 2018

In the sonar scanner log I see the messages

INFO: Sensor Groovy JaCoCo [groovy]
...
WARN: File not found: util/JenkinsErrorRule.groovy
WARN: File not found: util/BaseTest.groovy
WARN: File not found: steps/DeployTest.groovy

I run with the following settings:

sonar.sources=src,vars
sonar.tests=test

So the above files are located in the test folder but are not considered by JaCoCo. If I add the test folder from sonar.tests to sonar.sources the GroovySurefireSensor is complaining about it.

Is it correct that JaCoCo considers only files of Type.MAIN here and not also Type.TEST?

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

1 participant