Skip to content

Conversation

@jdmarshall
Copy link
Collaborator

In trying to figure out how to use the json reporter more like the html reporter, my eye was drawn back to some duplicated code my IDE has been complaining to me about for some time.

There's a spot in the code where the CSV format chose one fixed format and the json picked a 'human' format. I suspect Excel does not want to deal with a spread of units in a single column so that makes sense. But I sort of wonder if the same isn't also true of the json format. Why generate JSON if it is not meant to be consumed programatically instead of by humans?

This could be considered preparatory work for #119

@jdmarshall jdmarshall force-pushed the json branch 2 times, most recently from 46e5f92 to aea1584 Compare October 27, 2025 03:02
Multiple reporters are using substantially the same logic.
@RafaelGSS
Copy link
Owner

I'll review that carefully tonight. Just came back from vacations.

@jdmarshall
Copy link
Collaborator Author

I did a few captures and diffs and it seems to be in order.

Though there are a couple places where CSV displays data one way and JSON another. Particularly the different units in the json output. It might be that since both of these will be consumed by software that perhaps they should be the same.

@RafaelGSS RafaelGSS merged commit 85bfd3e into RafaelGSS:main Oct 31, 2025
5 of 6 checks passed
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.

2 participants