Skip to content

Conversation

@takaokouji
Copy link
Collaborator

Enhance test coverage measurement capabilities:

Changes:

  • Configure SimpleCov with detailed settings in test_helper.rb
    • Add filters to exclude test/, config/, vendor/ directories
    • Add coverage groups (Controllers, Resources, Serializers, etc.)
    • Enable branch coverage tracking (Ruby 2.5+)
    • Configure multi-format output (HTML + Console)
  • Clean up .gitignore (remove duplicate coverage entry)
  • Update .dockerignore to exclude coverage artifacts
  • Add coverage instructions to CLAUDE.md (local & Docker)

Test results with Rails 6.1.7.10:

  • Line Coverage: 92.04% (3491/3793 lines)
  • Branch Coverage: 85.13% (853/1002 branches)
  • All 674 tests passing

Usage:
COVERAGE=true bundle exec rake test docker-compose run -e COVERAGE=true rails-6.1

🤖 Generated with Claude Code

All Submissions:

  • I've checked to ensure there aren't other open Pull Requests for the same update/change.
  • I've submitted a ticket for my issue if one did not already exist.
  • My submission passes all tests. (Please run the full test suite locally to cut down on noise from travis failures.)
  • I've used Github auto-closing keywords in the commit message or the description.
  • I've added/updated tests for this change.

New Feature Submissions:

  • I've submitted an issue that describes this feature, and received the go ahead from the maintainers.
  • My submission includes new tests.
  • My submission maintains compliance with JSON:API.

Bug fixes and Changes to Core Features:

  • I've included an explanation of what the changes do and why I'd like you to include them.
  • I've provided test(s) that fails without the change.

Test Plan:

Reviewer Checklist:

  • Maintains compliance with JSON:API
  • Adequate test coverage exists to prevent regressions

Enhance test coverage measurement capabilities:

Changes:
- Configure SimpleCov with detailed settings in test_helper.rb
  - Add filters to exclude test/, config/, vendor/ directories
  - Add coverage groups (Controllers, Resources, Serializers, etc.)
  - Enable branch coverage tracking (Ruby 2.5+)
  - Configure multi-format output (HTML + Console)
- Clean up .gitignore (remove duplicate coverage entry)
- Update .dockerignore to exclude coverage artifacts
- Add coverage instructions to CLAUDE.md (local & Docker)

Test results with Rails 6.1.7.10:
- Line Coverage: 92.04% (3491/3793 lines)
- Branch Coverage: 85.13% (853/1002 branches)
- All 674 tests passing

Usage:
  COVERAGE=true bundle exec rake test
  docker-compose run -e COVERAGE=true rails-6.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant