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

scripts.views.sonar-coverage-view-min.js Maven / Gradle / Ivy

AJS.$.namespace("AJS.sonar.views.coverage");AJS.sonar.views.coverage.VIEW_NAME="coverage";AJS.sonar.views.coverage.METRICS="coverage_line_hits_data,tests,test_execution_time,test_errors,skipped_tests,test_failures,test_success_density,coverage,line_coverage,branch_coverage,skipped_tests";AJS.sonar.views.coverage.generateView=function(d,f,g,a){AJS.sonar.text.load(d);var b=AJS.sonar.views.createViewContainer();var c=AJS.sonar.views.createColumn(true);c.append(AJS.sonar.views.createHeader("sonar.views.coverage.code.coverage"));AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.coverage.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"coverage"),AJS.sonar.utils.getMetricFromMetricsArray(a,"coverage"),true).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.coverage.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"line_coverage"),AJS.sonar.utils.getMetricFromMetricsArray(a,"line_coverage"),false).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.coverage.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"branch_coverage"),AJS.sonar.utils.getMetricFromMetricsArray(a,"branch_coverage"),false).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.coverage.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"tests"),AJS.sonar.utils.getMetricFromMetricsArray(a,"tests"),false).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.coverage.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"skipped_tests"),AJS.sonar.utils.getMetricFromMetricsArray(a,"skipped_tests"),false).appendTo(c);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.coverage.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"test_execution_time"),AJS.sonar.utils.getMetricFromMetricsArray(a,"test_execution_time"),false).appendTo(c);c.appendTo(b);var e=AJS.sonar.views.createColumn(false);e.append(AJS.sonar.views.createHeader("sonar.views.coverage.test.success"));AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.coverage.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"test_success_density"),AJS.sonar.utils.getMetricFromMetricsArray(a,"test_success_density"),true).appendTo(e);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.coverage.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"test_failures"),AJS.sonar.utils.getMetricFromMetricsArray(a,"test_failures"),false).appendTo(e);AJS.sonar.views.createMeasureRow(f.host,AJS.sonar.views.coverage.VIEW_NAME,g.id,AJS.sonar.utils.getMeasureFromResource(g,"test_errors"),AJS.sonar.utils.getMetricFromMetricsArray(a,"test_errors"),false).appendTo(e);e.appendTo(b);AJS.sonar.views.addViewFooter(b,f.host);return b};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy