Conversation
- Fixed HTML output logic to use getCoverageXmlReport for XML coverage files - Previously getCoverageReport was always called, returning empty HTML for XML files - Now properly handles both text and XML coverage file types - Resolves issue where coverageHtml output was empty with pytest-xml-coverage-path 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
…for HTML output fixes
WalkthroughVersion bumped to 1.1.57, changelog updated, and HTML coverage generation logic now branches to XML-specific reporting when covXmlFile is provided, ensuring correct HTML output for both text and XML coverage inputs. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant CLI as CLI/Runner
participant Index as src/index.js
participant TxtRpt as getCoverageReport
participant XmlRpt as getCoverageXmlReport
User->>CLI: Run coverage task with options
CLI->>Index: newOptions (may include covXmlFile)
alt covXmlFile provided
Index->>XmlRpt: generate HTML from XML
XmlRpt-->>Index: { html, ... }
else no covXmlFile
Index->>TxtRpt: generate HTML from text report
TxtRpt-->>Index: { html, ... }
end
Index-->>CLI: coverageHtml (from output.html)
note over Index,CLI: Control flow updated to select XML or text report path
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
CHANGELOG.md (1)
3-11: Changelog entry reads well; tiny grammar nit.
Consider “Fix coverageHtml output being empty …” for clarity. If you want to satisfy markdownlint MD001, switch “#### Changes” to “### Changes” (and ideally align across the file).Apply grammar tweak:
- - fix coverageHtml output empty when using XML coverage files (#204) + - Fix coverageHtml output being empty when using XML coverage files (#204)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
⛔ Files ignored due to path filters (2)
dist/index.jsis excluded by!**/dist/**package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (3)
CHANGELOG.md(1 hunks)package.json(1 hunks)src/index.js(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
src/index.js (2)
src/parseXml.js (2)
getCoverageXmlReport(50-78)options(7-15)src/parse.js (5)
getCoverageReport(22-51)data(216-268)data(189-213)coverage(167-179)options(271-275)
🪛 markdownlint-cli2 (0.17.2)
CHANGELOG.md
7-7: Heading levels should only increment by one level at a time
Expected: h3; Actual: h4
(MD001, heading-increment)
🔇 Additional comments (1)
package.json (1)
3-3: Version bump to 1.1.57 — LGTM.
Matches changelog intent; no issues.
Summary by CodeRabbit
Bug Fixes
Documentation
Chores