Add markdown export and consolidate output format flags#2
Merged
Conversation
Co-authored-by: dev-ankit <1901680+dev-ankit@users.noreply.github.com>
Owner
|
@copilot consolidate and use --output or -o with markdown and json as options instead of separate arge |
Copilot
AI
changed the title
[WIP] Add ability to export results as markdown with emoji indicators
Add markdown export with emoji verdict indicators
Jan 8, 2026
Co-authored-by: dev-ankit <1901680+dev-ankit@users.noreply.github.com>
Contributor
Author
Done! Consolidated into Examples: python3 compare_runs.py base/ current/ # text (default)
python3 compare_runs.py base/ current/ -o json # JSON output
python3 compare_runs.py base/ current/ -o markdown # Markdown with emojisHelp output: All 161 tests updated and passing. Changes in commit d9bfc49. |
Copilot
AI
changed the title
Add markdown export with emoji verdict indicators
Add markdown export and consolidate output format flags
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds markdown export capability with emoji indicators (✅ better, ❌ worse, ➖ same) and consolidates output format selection into a unified
-o/--outputflag.Changes
New functions:
_verdict_to_emoji(): Maps verdict strings to emojirender_comparison_markdown(): Renders comparison tables in markdown formatprint_section_markdown(): Outputs hierarchical markdown headers (##, ###, ####)CLI: Consolidated
--jsonand--markdowninto-o/--output {text,json,markdown}flagtext(default): Human-readable table formatjson: Machine-readable JSON formatmarkdown: Markdown tables with emoji indicatorsAPI: Refactored
compare_reports()to use singleoutput_formatparameter instead of separateas_jsonandas_markdownflagsBackward compatibility note: This is a breaking change for CLI users. The old
--jsonand--markdownflags are replaced by-o jsonand-o markdownrespectively.Examples
Markdown Output Sample
Aggregated
Useful for GitHub PR comments, issue tracking, or documentation where color codes don't render.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.