We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf16bf7 commit ad618e0Copy full SHA for ad618e0
‎src/CloverParser.php‎
@@ -4,6 +4,16 @@
4
5
use SimpleXMLElement;
6
7
+/**
8
+ * Calculation reference https://confluence.atlassian.com/pages/viewpage.action?pageId=79986990
9
+ * So in order to calculate the Total Percentage Coverage metric using data from an XML report
10
+ * you have to use the following equation:
11
+ *
12
+ * TPC = (coveredconditionals + coveredstatements + coveredmethods) / (conditionals + statements + methods)
13
14
+ * Using elements is incorrect as according to that page notes, "elements" is conditionals + statements,
15
+ * which means including them in the calculation would double-count statements.
16
+ */
17
class CloverParser
18
{
19
/** @var array<string> */
0 commit comments