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

Enable CodeClimate #43

Open
camillof opened this issue Apr 27, 2022 · 0 comments
Open

Enable CodeClimate #43

camillof opened this issue Apr 27, 2022 · 0 comments

Comments

@camillof
Copy link

# Codeclimate is not compatible with 0.18+. See https://github.com/codeclimate/test-reporter/issues/413

Hey, I'm Camillo from CodeClimate, I'm reaching out about the ZenDesk ticket created here, and I would be glad to help with your issue.

I took a look at your failed job in CircleCI and I realized that you may be missing a setting in your yml.

The trick here is to set CC_TEST_REPORTER_ID at the moment SimpleCov is being run, meaning setting for both bundle exec rake and the CodeClimate action. (in your setting file you had it only in the latter)

As you can see in the simplecov ReadMe JSON formatter section, there is a comment explaining that SimpleCov will automatically use the JSON formatter along with the HTML formatter when the CC_TEST_REPORTER_ID variable is present in the environment.
Newer versions need that JSON formatter to work. You may find more context about this in this comment.

Please let me know if this works for you 😄

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