Skip to content

Add test coverage for malformed Cobertura XML files #87

@coderabbitai

Description

@coderabbitai

Description

Tests for malformed lcov files exist in the generate-coverage test suite, but similar coverage for Cobertura XML is missing. Adding tests for cases like missing elements or invalid XML structure would improve error handling in the Cobertura parser.

Current State

  • ✅ Tests exist for malformed lcov files (e.g., test_lcov_malformed_file)
  • ❌ No equivalent tests for malformed Cobertura XML files

Suggested Tests

  • Invalid XML structure
  • Missing required elements
  • Malformed attributes
  • Empty or corrupted XML content

References

Requested by: @leynos

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions