Parse and display Knapsack reports

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem to solve

Display test durations generated by Knapsack.

Intended users

Development Team Lead, Software Developer, DevOps Engineer, Data Analyst

Further details

Example reports:

  • https://github.com/ArturT/knapsack/blob/69e113550265c1ea8e60f4e65855ac2a9d8cb8f7/knapsack_rspec_report.json
  • https://gitlab-org.gitlab.io/-/gitlab-ce/-/jobs/254426998/artifacts/knapsack/gitlab-ce/rspec_report-master.json

Proposal

Parse the JSON files with test durations that Knapsack outputs and display a report with filename and duration:

Screen_Shot_2019-07-18_at_16.32.43

(similar to how we do with JUnit reports)

Suggested syntax for .gitlab-ci.yml:

  artifacts:
    paths:
      - report.json
    reports:
      knapsack: report.json
Edited Sep 08, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading