gotestyourself / gotestyourself/gotestsum

Add Github Actions Reporter as a format

Open
#540 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
2.7k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

Jest has implemented Github Actions reporter as an output format, which when run in a Github Action, allows Github to then surface test errors alongside the code under review.

Many lint tools have this set up as well, it makes surfacing which tests failed and where they failed just a bit easier.

## Refs:

-
- https://github.com/jestjs/jest/blob/main/packages/jest-reporters/src/GitHubActionsReporter.ts
- https://jestjs.io/blog/2022/04/25/jest-28#github-actions-reporter
- https://github.com/jestjs/jest/pull/11320
- https://github.com/jestjs/jest/issues/10309
- https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md
- Minimal example: https://github.com/stefanbuck/jest-matcher/pull/2/files

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the referenced Jest GitHubActionsReporter.ts implementation, the GitHub Actions problem-matchers documentation, and the minimal example pull request. Determine how gotestsum formats test failures for GitHub Actions, then verify that the new output format surfaces failed tests and locations correctly in a GitHub Actions run.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, go
Domain
ci-cd, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.