Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse test reports in the GH Actions workflow #53

Merged
merged 2 commits into from
Nov 23, 2023
Merged

Conversation

amorfis
Copy link
Member

@amorfis amorfis commented Nov 22, 2023

Adds "Test results" under the jobs in the workflow:

Screenshot 2023-11-22 at 18 09 14

Makes it easier to find failed tests and presents nice overview of all the tests run

@adamw
Copy link
Member

adamw commented Nov 23, 2023

Nice! How come we didn't have this before? ;)

@@ -23,6 +23,13 @@ jobs:
run: sbt -v compile
- name: Test
run: sbt -v test
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this a no-op? that is, can't we simply remove this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it means to run this step regardless if the previous one failed or succeeded. Without it test reports wouldn'd be parsed if any test failed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok :) maybe add a comment, I think people might find it confusing (e.g. me ;) )

@adamw adamw merged commit f28aaba into master Nov 23, 2023
5 checks passed
@adamw
Copy link
Member

adamw commented Nov 23, 2023

Thanks!

adamw pushed a commit to softwaremill/tapir that referenced this pull request Nov 28, 2023
Adds `Tests results` section in `Checks` which layouts test results in
eye-friendly manner.


![image](https://github.com/softwaremill/tapir/assets/22705075/847bc695-69d5-4e6b-b62a-7c57ab31a851)

Based on: softwaremill/ox#53
@adamw adamw deleted the parse-tests-reports branch February 21, 2024 15:21
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