Skip to content

Latest commit

 

History

History
 
 

jenkins-test-time-difference-table-operator

Jenkins Test Time Difference Table Generator operator

Generates a table to see the time difference betweent the tests of two Jenkins builds.

Build

Be sure to have installed Node.js in your system. For example, you can install it on Ubuntu and Debian running the following commands:

curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
sudo apt-get install npm

If you want the last version of the operator, you should change to the develop branch:

git checkout develop

Install other npm dependencies by running: (need root because some libraries use applications, check package.json before to be sure)

sudo npm install

For build the operator you need download grunt:

sudo npm install -g grunt-cli

And now, you can use grunt:

grunt

If everything goes well, you will find a wgt file in the dist folder.

Settings

  • Number of decimals: This preference allows to change the number of decimals to be displayed on the table. Defaults to 3 decimals.

Wiring

Input Endpoints

  • Build Test List: List of the tests passed by builds. Can be obtained through the detailed-jenkins-test-data operator.

Output Endpoints

  • Table Data Model: The table configuration and data to be plotted. This should be passed to the data table viewer widget.

Usage

To use this operator plug in a test list from the detailed-jenkins-test-data operator and plug the Data and Structure endpoint to the data table viewer widget. To gather the tests passed by two builds, as required for this widget to work, two and filters can be used, merging together both builds before passing it to the detailed-jenkins-test-data operator by using the union-list operator.

Rows will be displayed with colors: danger color (red by default) when the test time increased, info color (blue by default) when there's no change in test time, and success color (green by default) when the test time decreased.

Input should be ordered before going to the detailed-jenkins-test-data operator, being the first build the newest one for the row colors to be displayed properly.

If more than two build test lists are passed as input, only the first two will be used.