Skip to content

Conversation

@cardmagic
Copy link
Owner

Summary

  • Add SimpleCov for test coverage tracking
  • Document current coverage gaps in COVERAGE_AUDIT.md
  • Include sig folder in gem package for RBS type distribution
  • Add .gitignore for coverage reports

Coverage Findings

Metric Current
Line Coverage 88.06%
Branch Coverage 67.92%

Critical Gaps Identified

  1. Bayes#untrain - completely untested (Add tests for Bayes#untrain method #50)
  2. LSI#remove_item and LSI#items - no coverage (Add tests for LSI#remove_item and LSI#items methods #51)
  3. Edge cases for unicode/empty strings (Add edge case tests for text handling #52)

Follow-up Issues Created

Closes #48

Add test coverage tooling and document current coverage gaps.

Current coverage: 88% line, 68% branch. Key findings:
- Bayes#untrain method has zero coverage
- LSI#remove_item and #items methods untested
- Several edge cases missing across components

Also includes sig folder in gem package for RBS distribution.

Refs #48
@cardmagic cardmagic requested a review from Copilot December 27, 2025 06:20
@cardmagic cardmagic self-assigned this Dec 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds SimpleCov for test coverage tracking and provides a comprehensive audit of current test coverage gaps in the classifier gem. The audit reveals 88.06% line coverage and 67.92% branch coverage, identifying critical untested methods like Bayes#untrain, LSI#remove_item, and LSI#items.

Key changes:

  • Integrated SimpleCov with branch coverage tracking and logical grouping of components
  • Documented coverage gaps and created follow-up issues for critical missing tests
  • Enhanced gem packaging to include RBS type signatures

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated no comments.

File Description
test/test_helper.rb Adds SimpleCov configuration with branch coverage and component grouping
classifier.gemspec Updates file patterns to include sig folder and RBS type files in gem package
Gemfile Adds SimpleCov as a test dependency
COVERAGE_AUDIT.md Documents comprehensive coverage audit with identified gaps and recommendations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cardmagic cardmagic merged commit b9d92d4 into master Dec 27, 2025
4 checks passed
@cardmagic cardmagic deleted the audit/spec-coverage branch December 27, 2025 06:23
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.

Audit spec coverage

2 participants