Add test report widget using new framework
What does this MR do and why?
For #338285 (closed)
This MR recreates a basic versions of the test summary widget using the new merge request widget extensions framework.
This MR only implements levels 1 and 2 of the widget: the main widget body and the list of suites. The list of changed test results for each suite (level 3) will be added soon along with the Failed N times in the last 14 days
badges, see #351258 (closed) for details.
Screenshots or screen recordings
description | screenshot |
---|---|
loading | |
error | |
with changed test results | |
with no changed test results | |
with report parsing error |
How to set up and validate locally
git checkout 338285-test-summary-mr-report-widget
-
echo "Feature.enable(:refactor_mr_widgets_extensions)" | rails c
(this feature is behind this feature flag) - set up test reports for a project (or clone this test project)
- run a pipeline for the default branch of the project that generates a test report
- open a merge request for a branch that changes test results
- navigate to the merge request, wait for the report parsing/comparison to finish, observe the test summary widget
note: the old widget will appear below the new widget, this is expected while we're implementing the new widgets
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Miranda Fluharty