feat request: Markdown format #1759
huitseeker
started this conversation in
Feature requests
Replies: 1 comment
-
Hi François, hope you're well! I agree that this would be great and I think nextest should learn how to write a markdown summary to a file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Github actions recently added the ability to output a Markdown-formatted test summary :
https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/
It would be great to have a straightforward Markdown output mode that would populate the test outcomes as a Markdown table.
Details
The nextest output is awesome for the CLI (seriously, thanks!), but contains some duplicate formatting for tests marked as slow, and is close to (but not quite a) Markdown table. For a (biased) example:
Other approaches / relevant resources
It's hard to find public repos using nextest in conjunction with
$GITHUB_STEP_SUMMARY
today.It may be possible to scrounge up something out of the tool from the following (incomplete, not rigorously tested, doesn't cover ignored tests):
... or something even more rigorous from the json output.
But this issue is written in the hope contributors might find a maintained markdown-summary output mode a fun endeavor (and that the maintainers would find it a valuable contribution), based on the GH action use case.
By comparison, there is the
cargo pretty-test
tool, which contains fixed-width output suitable for display with$GITHUB_STEP_SUMAMRY
(as text).See also #20
Beta Was this translation helpful? Give feedback.
All reactions