Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.36 KB

testresult.md

File metadata and controls

29 lines (20 loc) · 1.36 KB

src/testresult.js

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:

  1. Locates pages whose URL contains "testReport"
  2. Finds and sums intended column values of the table
  3. Inserts new Totals row into the table
  4. Inputs calculated total values
  5. Adjusts the styles accordingly

Before

After

Usage instructions

Separately
  1. Download testresult.js and put it to ~/.jenkins/userContent directory
  2. Install JQuery and Simple Theme Jenkins plugins
  3. Set Manage Jenkins -> Configure System -> URL of theme JS field value to "http://localhost:8080/userContent/testresult.js"
Within doony scheme

Amend doony.min.js with the code from testresult.js