Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
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";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,"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};