Open foulkesjohn opened 6 years ago
@chrishulton -
I have another user who has the same error message.
- run:
name: Code Climate post-build
command: ./cc-test-reporter after-build --coverage-input-type cobertura --exit-code $?
I can confirm what @foulkesjohn said. The error occurs if there's a line number="0" in cobertura.xml:
<line number="100" branch="false" hits="15000"/>
<line number="0" branch="false" hits="100"/>
<line number="101" branch="false" hits="150"/>
Another workaround is to use --debug
to locate that file and ignore it in .slather.yml
Thanks for reporting the issue. We have added a fix to the test reporter to ignore the line number="0"
lines so they will not crash the service.
It looks like the underlying issue is being worked on in Slather as well: https://github.com/SlatherOrg/slather/pull/387
Let us know if you continue to see issues after upgrading to the latest version of the reporter (0.5.2).
I have a cobertura coverage file which is crashing because of the following class:
I'm running
format-coverage -t cobertura -d ./cobertura.xml
Stacktrace:
This is probably bad data generated from slather but causes the crash non the less. If I manually remove all the number=0 lines then it works.