You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm contributing to a test framework. I've added support for it to detect when it's running in GitHub Actions, using the CI and GITHUB_ACTIONS environment variables. Instead of simply writing the test results, the test framework will also output Workflow commands for GitHub Actions to get nice annotations in the GHA code, eventually linking back to the code where the error was raised, etc.
The tests are grouped in test suites. I've had the idea of grouping each test suite in a fold
::group::{title}
::endgroup::
for the user to be able to navigate more easily between them. The test framework doesn't buffer the logs of each test, so they are just streamed, and the result of the test is only known when it's finished so importantly I don't know whether the test has succeeded or failed before I start printing its logs.
I would like to be able to set the folded/unfolded state of each group when the group ends: I the test suite succeeded then its group can remain folded, if the test suite failed, I can set its group unfolded so that the user will see the failures right away.
This feature would be useful on the closing tag because we might not know when opening the group the final folded/unfolded state.
If folded is the default state, this could be as easy as this, with ::endgroup:: taking precedence.
::group::{title,unfold}
::endgroup::{unfold}
Note that from the test framework, I cannot use GHA js API, I can only output these annotations in the logs.
ActionsBuild, test, and automate your deployment pipeline with world-class CI/CDProduct Feedback
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Product Feedback
Body
Hello all,
I'm contributing to a test framework. I've added support for it to detect when it's running in GitHub Actions, using the
CI
andGITHUB_ACTIONS
environment variables. Instead of simply writing the test results, the test framework will also output Workflow commands for GitHub Actions to get nice annotations in the GHA code, eventually linking back to the code where the error was raised, etc.The tests are grouped in test suites. I've had the idea of grouping each test suite in a fold
for the user to be able to navigate more easily between them. The test framework doesn't buffer the logs of each test, so they are just streamed, and the result of the test is only known when it's finished so importantly I don't know whether the test has succeeded or failed before I start printing its logs.
I would like to be able to set the folded/unfolded state of each group when the group ends: I the test suite succeeded then its group can remain folded, if the test suite failed, I can set its group unfolded so that the user will see the failures right away.
This feature would be useful on the closing tag because we might not know when opening the group the final folded/unfolded state.
If folded is the default state, this could be as easy as this, with
::endgroup::
taking precedence.Note that from the test framework, I cannot use GHA js API, I can only output these annotations in the logs.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions