A Dashing widget to display the number of passing, ignored and failing tests from a test result file in the JUnit XML format.
The following dependencies are required. Please add them to your dashing gemfile.
gem 'nokogiri'
Run bundle install
You will also need to include Chart.min.js
from http://www.chartjs.org.
As it is quite common, a Junit xml source job is shown below. It requires the junit file locations to be added to the top of the job file, and the duration adjusted.
Add the following widget HTML snippet for each jql filter to your dashboard erb file.
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="unit_test_data" data-view ="Tests" data-title="Unit Tests" ></div>
</li>
Multiple widgets can be shown on a dashboard by repeating the above snippet and changing data-id
along with additional, modified copy of the test_job.rb file.
The widget is provided unter the Apache License, Version 2.0. You may obtain a copy of the License at (http://www.apache.org/licenses/LICENSE-2.0)
new to Dashing, which folder is used to put
Chart.min.js
?