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

SimpleCov Reporting Differences Between v0.17.1 and v0.18.0 #937

Open
ksylvest opened this issue Jan 30, 2020 · 2 comments
Open

SimpleCov Reporting Differences Between v0.17.1 and v0.18.0 #937

ksylvest opened this issue Jan 30, 2020 · 2 comments
Assignees

Comments

@ksylvest
Copy link

@ksylvest ksylvest commented Jan 30, 2020

I'm running simplecov / codeclimate. Bumping from v0.17.1 to v0.18.0 of SimpleCov causes the reporter to fail:

#!/bin/bash -eo pipefail
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-$CC_TEST_REPORTER_VERSION > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter format-coverage -t simplecov coverage/.resultset.json
./cc-test-reporter upload-coverage
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

100   178  100   178    0     0  14833      0 --:--:-- --:--:-- --:--:-- 14833

100 12.1M  100 12.1M    0     0  82.8M      0 --:--:-- --:--:-- --:--:-- 82.8M
Error: json: cannot unmarshal object into Go struct field input.coverage of type []formatters.NullInt
Usage:
  cc-test-reporter format-coverage [coverage file] [flags]

Flags:
      --add-prefix string   add this prefix to file paths
  -t, --input-type string   type of input source to use [clover, cobertura, coverage.py, excoveralls, gcov, gocov, jacoco, lcov, simplecov, xccov]
  -o, --output string       output path (default "coverage/codeclimate.json")
  -p, --prefix string       the root directory where the coverage analysis was performed (default "/home/circleci/project")

Global Flags:
  -d, --debug   run in debug mode


Exited with code exit status 255

Possibly related to the formatting?

Old: https://15129-99061924-gh.circle-artifacts.com/0/coverage/.resultset.json
New: https://15169-99061924-gh.circle-artifacts.com/0/coverage/.resultset.json

PR / CI for reference: ksylvest/playground#892 / https://circleci.com/gh/ksylvest/playground/15169#artifacts/containers/0

@PragTob
Copy link

@PragTob PragTob commented Jan 31, 2020

Hi there,

this is a known issue - you can find out more about the background etc. here: codeclimate/test-reporter#413

Cheers,
Tobi

@ksylvest
Copy link
Author

@ksylvest ksylvest commented Jan 31, 2020

Thanks @PragTob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.