Skip to content

add-prefix not added for cobertura #422

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

Open
ryanb93 opened this issue Feb 13, 2020 · 1 comment
Open

add-prefix not added for cobertura #422

ryanb93 opened this issue Feb 13, 2020 · 1 comment
Assignees

Comments

@ryanb93
Copy link

ryanb93 commented Feb 13, 2020

I'm trying to run sbt-scoverage and then upload the reports to Code Climate. My project is built inside a docker container.

This is my CircleCI configuration:

./cc-test-reporter before-build
./.circleci/in_docker.sh make test
./cc-test-reporter format-coverage -t cobertura -d /home/circleci/app/target/scala-2.13/coverage-report/cobertura.xml --add-prefix /home/circleci/app/src/main/scala
./cc-test-reporter upload-coverage

Which results in a failure and the following error:

DEBU[0000] coverage path /home/circleci/app/target/scala-2.13/coverage-report/cobertura.xml 
DEBU[0000] using formatter cobertura                    
DEBU[0000] checking search path /home/circleci/app/target/scala-2.13/coverage-report/cobertura.xml for cobertura formatter 
DEBU[0000] couldn't load committed at from ENV, trying git... 
DEBU[0000] creating test file report for package/path/name/Main.scala 
INFO[0000] trimming with prefix /home/circleci/app             
DEBU[0000] getting fallback blob_id for source file package/path/name/Main.scala 
ERRO[0000] failed to read file package/path/nameMain.scala
open package/path/name/Main.scala: no such file or directory 
Error: open package/path/name/Main.scala: no such file or directory

It seems as though the add-prefix is not being added.

@jasonseminara
Copy link

I'm also seeing this behavior with lcov.
Either this flag is not reported in the debugger, or it simply doesn't work.

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

3 participants