All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.js.features-chart.js Maven / Gradle / Ivy

Go to download

Provides pretty html reports for Cucumber (Behaviour-Driven Development). It works by generating html from the cucumber json report formatter. So can be used anywhere a json report is generated. Current use is in the cucumber jenkins plugin and a maven mojo to generate the same report from mvn command line when running locally.

There is a newer version: 5.8.6
Show newest version
$(document).ready(function() {

  var chartData = {
          datasets: [{
              data: [
                     $all_features_passed,
                     $all_features_failed
                 ],
                 backgroundColor: [
                  "#00B000",
                  "#FF3030"
              ],
          }],
          labels: [
              "Passed",
              "Failed"
          ]
      };

  var ctx = document.getElementById("features-chart");
  window.myBar = new Chart(ctx, {
      type: 'pie',
      data: chartData,
      options: {
          title: {
              display: true,
              fontSize: 20,
              text: 'Features'
          },
          responsive: true,
          legend: {
              display: false
          }
      }
  });

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy