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

[FEATURE] Add CodeClimate coverage report #139

Open
guibranco opened this issue Apr 8, 2023 · 1 comment
Open

[FEATURE] Add CodeClimate coverage report #139

guibranco opened this issue Apr 8, 2023 · 1 comment
Labels
code quality Code Quality enhancement New feature or request gitauto :octocat: github-actions Pull requests that update GitHub Actions code

Comments

@guibranco
Copy link
Owner

guibranco commented Apr 8, 2023

Description
We need to integrate Code Climate into our CI/CD pipeline to generate coverage reports for our project. This integration will help us maintain code quality and provide insights into our test coverage over time.

Context
The current configuration for our AppVeyor build can be found here. We need to update this configuration to include Code Climate coverage reporting.

Resources

Acceptance Criteria

  • Code Climate should be integrated into our build process.
  • Coverage reports should be sent to Code Climate after each build.
  • The setup should be documented in the repository.

Proposed Solution

  1. Create a Code Climate Token
    Sign up or log in to Code Climate, create a new repository, and obtain your repository token.

  2. Update AppVeyor Configuration
    Modify the appveyor.yml file to include the necessary steps for Code Climate integration. Below is a sample configuration snippet:

    # appveyor.yml
    version: '{build}'
    configuration: Release
    platform:
      - x64
    
    before_build:
      - nuget restore
    
    build_script:
      - msbuild /p:Configuration=Release
    
    after_test:
      - dotnet tool install --global dotnet-reportgenerator-globaltool
      - reportgenerator -reports:./Tests/coverage.cobertura.xml -targetdir:./Tests/coverage-report -reporttypes:Html
      - curl -X POST -H "Content-Type: application/json" -d "{\"data\":{\"attributes\":{\"branch\":\"$APPVEYOR_REPO_BRANCH\",\"commit\":\"$APPVEYOR_REPO_COMMIT\",\"coverage\":\"$(cat ./Tests/coverage-report/coverage.cobertura.xml)\"}}}" "https://api.codeclimate.com/v1/test_reports?project_id=<your_project_id>" -H "Authorization: Token <your_code_climate_token>"

    Replace <your_project_id> and <your_code_climate_token> with your actual Code Climate project ID and token.

  3. Install Required Tools
    Ensure that the dotnet-reportgenerator-globaltool is installed to generate the coverage reports.

  4. Verify Integration
    Push your changes and verify that the Code Climate coverage report is correctly uploaded after each build.

Additional Context
Make sure you have your Code Climate project set up and that you have the necessary permissions to push coverage reports. This integration will enable continuous monitoring of our code quality.

@guibranco guibranco self-assigned this Apr 20, 2023
@guibranco guibranco added enhancement New feature or request dependencies Pull requests that update a dependency file github_actions labels Jun 4, 2023
@guibranco guibranco removed their assignment Jun 30, 2023
@guibranco guibranco added help wanted Extra attention is needed good first issue Good for newcomers labels Jun 30, 2023
@guibranco guibranco changed the title Add CodeClimate coverage report Add Code Climate coverage report Jul 4, 2023
@guibranco guibranco removed the dependencies Pull requests that update a dependency file label Jul 4, 2023
@guibranco guibranco self-assigned this Jul 27, 2023
@guibranco guibranco removed help wanted Extra attention is needed good first issue Good for newcomers labels Jul 27, 2023
@guibranco guibranco removed their assignment Dec 11, 2023
@guibranco guibranco changed the title Add Code Climate coverage report [FEATURE] Add Code Climate coverage report May 15, 2024
@guibranco guibranco transferred this issue from guibranco/BancosBrasileiros Aug 16, 2024
Copy link
Contributor

gitauto-ai bot commented Aug 16, 2024

Hello @guibranco, you have reached your request limit of 5, your cycle will refresh on 2024-08-21 10:07:38.
Consider subscribing if you want more requests.
If you have any questions or concerns, please contact us at info@gitauto.ai.

@gitauto-ai gitauto-ai bot added the gitauto label Aug 22, 2024
@guibranco guibranco added :octocat: github-actions Pull requests that update GitHub Actions code code quality Code Quality and removed github_actions labels Sep 15, 2024
@guibranco guibranco changed the title [FEATURE] Add Code Climate coverage report [FEATURE] Add CodeClimate coverage report Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Code Quality enhancement New feature or request gitauto :octocat: github-actions Pull requests that update GitHub Actions code
Projects
None yet
Development

No branches or pull requests

1 participant