Skip to content

Enable CodeClimate #43

@camillof

Description

@camillof

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions