From 21f4a44d847dde504296c030734a41a73e31e0da Mon Sep 17 00:00:00 2001 From: Dmitry Baev Date: Fri, 1 Dec 2023 11:21:52 +0000 Subject: [PATCH] exclude skipped tests from startistics (via #2219) --- .../components/graph-pie-chart/PieChartView.js | 12 ++++++++++-- build.gradle.kts | 12 +++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/allure-generator/src/main/javascript/components/graph-pie-chart/PieChartView.js b/allure-generator/src/main/javascript/components/graph-pie-chart/PieChartView.js index 748628240..9dfb3e389 100644 --- a/allure-generator/src/main/javascript/components/graph-pie-chart/PieChartView.js +++ b/allure-generator/src/main/javascript/components/graph-pie-chart/PieChartView.js @@ -100,8 +100,16 @@ class PieChartView extends BaseChartView { } getChartTitle() { - const { passed, total } = this.statistic; - return `${this.formatNumber(((passed || 0) / total) * 100)}%`; + const { passed = 0, failed = 0, broken = 0, total = 0 } = this.statistic; + if (!total) { + return "???"; + } + + if (!passed) { + return "0%"; + } + + return `${this.formatNumber((passed / (passed + failed + broken)) * 100)}%`; } getTooltipContent({ data }) { diff --git a/build.gradle.kts b/build.gradle.kts index c23334ee2..70a2ccb4a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -223,7 +223,11 @@ subprojects { pom { name.set(project.name) description.set("Module ${project.name} of Allure Framework.") - url.set("https://github.com/allure-framework/allure2") + url.set("https://allurereport.org/") + organization { + name.set("Qameta Software") + url.set("https://qameta.io/") + } licenses { license { name.set("The Apache License, Version 2.0") @@ -235,11 +239,13 @@ subprojects { id.set("baev") name.set("Dmitry Baev") email.set("dmitry.baev@qameta.io") + url.set("https://github.com/baev") } developer { id.set("eroshenkoam") name.set("Artem Eroshenko") email.set("artem.eroshenko@qameta.io") + url.set("https://github.com/eroshenkoam") } } scm { @@ -251,6 +257,10 @@ subprojects { system.set("GitHub Issues") url.set("https://github.com/allure-framework/allure2/issues") } + ciManagement { + system.set("Github Actions") + url.set("https://github.com/allure-framework/allure-java/actions") + } versionMapping { usage("java-api") { fromResolutionOf("runtimeClasspath")