You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: