Sha256: 89a31153ed99bd0beb39cf7f02e674172c3b6d0cb73a3b36681077f5afe2b263
Contents?: true
Size: 1.81 KB
Versions: 67
Compression:
Stored size: 1.81 KB
Contents
<%# Partial template used to display a gauge. # Expects the following variables to be set: # * *@gauge_success* (Integer): Number of tests in success # * *@gauge_unexpected_error* (Integer): Number of tests in unexpected error # * *@gauge_expected_error* (Integer): Number of tests in expected error # * *@gauge_not_run* (Integer): Number of tests not run %> <% gauge_total = @gauge_success + @gauge_unexpected_error + @gauge_expected_error + @gauge_not_run %> <% unless gauge_total == 0 %> <%= (@gauge_success*100.0/gauge_total).to_i %> % <br/> <ac:structured-macro ac:name="chart" ac:schema-version="1"> <ac:parameter ac:name="imageFormat">png</ac:parameter> <ac:parameter ac:name="showShapes">false</ac:parameter> <ac:parameter ac:name="forgive">false</ac:parameter> <ac:parameter ac:name="legend">false</ac:parameter> <ac:parameter ac:name="width">200</ac:parameter> <ac:parameter ac:name="dataOrientation">vertical</ac:parameter> <ac:parameter ac:name="colors">#14892C,#FFD351,#D04437,#CCCCCC</ac:parameter> <ac:parameter ac:name="height">200</ac:parameter> <ac:parameter ac:name="pieSectionLabel">%1%</ac:parameter> <ac:rich-text-body> <table> <tbody> <tr> <th>Label</th> <th>Value</th> </tr> <tr> <td>Success</td> <td><%= @gauge_success %></td> </tr> <tr> <td>Expected error</td> <td><%= @gauge_expected_error %></td> </tr> <tr> <td>Unexpected error</td> <td><%= @gauge_unexpected_error %></td> </tr> <tr> <td>Missing</td> <td><%= @gauge_not_run %></td> </tr> </tbody> </table> </ac:rich-text-body> </ac:structured-macro> <% end %>
Version data entries
67 entries across 67 versions & 1 rubygems