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

Closed
ksylvest opened this issue Jan 30, 2020 · 3 comments
Closed

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

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

Comments

@ksylvest
Copy link

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 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

Thanks @PragTob

@brynary
Copy link
Member

brynary commented Nov 15, 2024

Hello -- Thank you for this GitHub issue.

We are going to be releasing a new version of our code quality CLI shortly, and so I am in the process of closing all open GitHub issues in preparation for that. We will be in touch soon and would be happy to hear from you on any feedback you have on the new CLI when it is available later this month.

@brynary brynary closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2024
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

4 participants