Skip to content

Commit

Permalink
Fix percentage calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
JervenBolleman committed Oct 5, 2024
1 parent a7ad064 commit bb9c9e7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/java/swiss/sib/rdf/sparql/examples/Tester.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.OpenOption;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.text.NumberFormat;
Expand Down Expand Up @@ -191,16 +190,16 @@ public void printMarkdownSummary(BufferedWriter w, TestExecutionSummary tes) thr
long passed = tes.getTestsSucceededCount();
w.append("| found | ").append(Long.toString(found)).append(NC).append("100%|");
w.newLine();
w.append("| failed | ").append(Long.toString(failed)).append(NC).append(percentage(found - failed, found))
w.append("| failed | ").append(Long.toString(failed)).append(NC).append(percentage(failed, found))
.append(NC);
w.newLine();
w.append("| aborted | ").append(Long.toString(aborted)).append(NC).append(percentage(found - aborted, found))
w.append("| aborted | ").append(Long.toString(aborted)).append(NC).append(percentage(aborted, found))
.append(NC);
w.newLine();
w.append("| skipped | ").append(Long.toString(skipped)).append(NC).append(percentage(found - skipped, found))
w.append("| skipped | ").append(Long.toString(skipped)).append(NC).append(percentage(skipped, found))
.append(NC);
w.newLine();
w.append("| passed | ").append(Long.toString(passed)).append(NC).append(percentage(found - passed, found))
w.append("| passed | ").append(Long.toString(passed)).append(NC).append(percentage(passed, found))
.append(NC);
w.newLine();
w.newLine();
Expand Down

0 comments on commit bb9c9e7

Please sign in to comment.