Open braingram opened 3 months ago
@ethomson
I've been searching for a way to hide long tracebacks, just like this. So it would be awesome to have this merged/released!
Is there a way to reference the version from this PR? You can reference a GH action by any ref, but I tried uses: test-summary/action@briangram:folded
and uses: test-summary/action@a84d6b8e57758e50ffd188c78066ab4416d8a988
with no luck.
I've been searching for a way to hide long tracebacks, just like this. So it would be awesome to have this merged/released!
Is there a way to reference the version from this PR? You can reference a GH action by any ref, but I tried
uses: test-summary/action@briangram:folded
anduses: test-summary/action@a84d6b8e57758e50ffd188c78066ab4416d8a988
with no luck.
Give uses: braingram/test-summary-action@dist
a try. This repo uses a separate distribution branch. I cobbled together one for my fork while working on the PR. Feel free to use it for testing. I make no promises that it won't suddenly disappear (especially if this PR gets merged) so using it in "production" is "at your own risk". Let me know if you run into any issues or have questions.
Thanks, that works great! And I'll be cautious about using the ephemeral ref. (:
Thanks for the useful action!
For our test runs we sometimes have several test failure with large tracebacks. It's helpful to get an overview of the failures by scanning the test names, then look into the details of the failures.
This PR adds a
folded
option which puts the tracebacks in a<details>
block. So for a failing test the html will look something like:Here's a screenshot from an example test run:
and one with the first test expanded:
Please excuse any silly mistakes and any comments suggestions are greatly appreciated. It's the first few lines of typescript I've ever written.
By default the option is off but can be enabled by providing
folded: true
in the action configuration.