Code Climate Lunch & Learn Example
Example files: https://gist.github.com/dblandin/589e70345774298e1622850349c31876
- Install the Code Climate browser extension
- Fork this project to your own GitHub user.
- Import your new fork of the repo to Quality, using the
Open Sourcesection of the Quality UI. - Update the included CircleCI config file with the Test Reporter ID found in your Repo Settings in Quality.
- Create a CircleCI user, and add your repo to CircleCI.
- Head back to the Quality UI, and install the GitHub PR Integration for your repo.
- In the GitHub UI, modify
foo_bar.rbwith this content from gist - When committing the changes, create a new branch titled
demo-branchfor the commit and open a pull request.
You should now see a Cognitive Complexity issue reported by Quality as a PR status
and via the browser extension on the diff. Test coverage reporting should also show
uncovered lines via the browser extension and a drop in coverage via the diff-coverage and total-coverage statuses.
- On your existing
demo-branchbranch, modifyspec/foo_bar_spec.rbwith this content from gist - Commit the update to
demo-branch.
Your pull request should now show a smaller decrease in total-coverage, and a passing diff-coverage status.
The browser extension will also highlight the newly covered lines in foo_bar.rb.



