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

Add GitHub Actions workflow step to add summary for test-runner results #2719

Open
sanderploegsma opened this issue Feb 4, 2024 · 2 comments

Comments

@sanderploegsma
Copy link
Contributor

The GitHub Actions workflow that runs the tests using the Java test runner currently doesn't provide very useful output (example). We can look into creating a custom action step to create a job summary from the JSON output, perhaps using actions/github-script.

This step should then at least provide:

  • A job summary containing the name/slug of each tested exercise, with a total pass/fail count per exercise. Perhaps using a summary table.
  • The .tests[].message for each failed test in each test-runner JSON file, perhaps by using annotations.
  • The .message for each test-runner JSON file with status error, perhaps also by using annotations.
@sanderploegsma
Copy link
Contributor Author

I once played around with creating a custom GitHub Action to make running tests using a track's test runner reusable. This was never finished but it also created job summaries so perhaps we can take that as inspiration. Here's an example: https://github.com/sanderploegsma/exercism-test-runner-action/actions/runs/6881871576

@altinocoelho
Copy link

@sanderploegsma I would like to help with this one

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

No branches or pull requests

2 participants