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

Test Results Summary #11

Closed
7 tasks
applejag opened this issue May 21, 2021 · 0 comments · Fixed by #43
Closed
7 tasks

Test Results Summary #11

applejag opened this issue May 21, 2021 · 0 comments · Fixed by #43
Assignees
Labels
enhancement New feature or request
Projects

Comments

@applejag
Copy link
Contributor

applejag commented May 21, 2021

Right now the test results are taken for each build separately and calculated each time by parsing artifact files.

A new table needs to be created to keep the test results summary. That table should have relations N:1 to build table and 1:1 relation to an artifact table.

Table should contain the number of tests run, passed, failed and skipped.

The values to this table should be calculated once when the artifact is uploaded into the backend.

Create a separate method to upload test results apart from artifacts

Modify the get method for builds to include the total test numbers in the build entity. That number should be a sum of all entities in the test result summary table related to that build.

The get test results method should be modified to return the list of results + a link to an artifact that those results originated from (artifact Id should be enough)

Change the frontend to use the new way of getting test results instead of making those additional calls per build.

image


  • Make the database changes
  • Fill out the data from existing artifacts
  • Create an Upload TestResult endpoint. This will parse the test result files (UTs)
  • Modify the existing wharf-ci configuration to use new endpoint (in our other internal projects that use Wharf with test results)
  • Extend the Build entity with TestResultSummary
  • Use new data from Build entity on the Frontend
  • Remove /testResults endpoint
@applejag applejag added the enhancement New feature or request label May 21, 2021
@applejag applejag added this to To do in Backlog via automation May 21, 2021
Backlog automation moved this from To do to Done Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants