Skip to content

Commit

Permalink
exclude skipped tests from startistics (via #2219)
Browse files Browse the repository at this point in the history
  • Loading branch information
baev committed Dec 1, 2023
1 parent 49c0cea commit 21f4a44
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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 {
Expand All @@ -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")
Expand Down

0 comments on commit 21f4a44

Please sign in to comment.