Skip to content

Add Jest JSON reporter

What does this MR do and why?

Add Jest JSON reporter for coverage export to ClickHouse

Implements a custom Jest reporter that outputs test metadata in JSON format matching the RSpec JSON formatter structure. This is a pre-requisite to allow the gitlab_quality-test_tooling gem to export frontend test coverage to ClickHouse alongside backend coverage.

The reporter:

  • Generates JSON reports per CI shard (using CI_NODE_INDEX)
  • Matches RSpec formatter output structure for gem compatibility
  • Sets feature_category to null (Jest tests don't have categories yet)
  • Collected as artifacts by coverage-frontend job

Related: gitlab-org/quality/analytics/team#317 (closed)

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Richard Chong

Merge request reports

Loading