Skip to content

Conversation

@ayush-eb
Copy link

Migrate Coverage Upload to QLTY

Summary

This PR migrates coverage reporting from local-only to QLTY Cloud. Changes were made by AI and may contain mistakes - please review carefully.

Changes Made

  1. Added XML coverage report generation in tox.ini:

    • Added coverage xml -o coverage.xml to the coverage environment
    • This generates a Cobertura XML file that QLTY can consume
  2. Added QLTY coverage upload to .travis.yml:

    • Installs QLTY CLI in after_script section
    • Uploads coverage.xml to QLTY when running on master branch
    • Uses || true to prevent CI failures if upload fails

Setup Required

  1. Set QLTY_COVERAGE_TOKEN in Travis CI environment variables:

  2. Verify coverage upload:

    • After merging, check that coverage appears in QLTY dashboard
    • Coverage upload only runs on master branch (default branch requirement)

Testing

  • Coverage generation tested via existing tox configuration
  • QLTY upload will be validated in CI after token is configured
  • Note: Travis CI is deprecated - consider migrating to GitHub Actions or CircleCI in the future

Coverage Details

  • Format: Cobertura XML (coverage.xml)
  • Location: Repository root
  • Generated by: tox -e coverage environment
  • Upload trigger: Push to master branch

@ayush-eb ayush-eb marked this pull request as ready for review December 22, 2025 10:49
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

Successfully merging this pull request may close these issues.

2 participants