This JavaScript is a lightweight front-end realization of the minor improvement for the Test Result page (bug tracker issue 35486). The idea is to add a "Total:" row to the tables that contain test results, so the entire evolution can be tracked.
A brief description of the JavaScript code:
- Locates pages whose URL contains "testReport"
- Finds and sums intended column values of the table
- Inserts new Totals row into the table
- Inputs calculated total values
- Adjusts the styles accordingly
- Download testresult.js and put it to ~/.jenkins/userContent directory
- Install JQuery and Simple Theme Jenkins plugins
- Set Manage Jenkins -> Configure System -> URL of theme JS field value to "http://localhost:8080/userContent/testresult.js"
Amend doony.min.js with the code from testresult.js