Is there any way that I can get coverage threshold number, Complexity Total or Branch Total, ... of the report via a script?
Thank you in advance,
ptrinh
Description
Hi Support Team and Robin,
Is there any way that I can get coverage threshold number, Complexity Total or Branch Total, ... of the report via a script?
Thank you in advance,
ptrinh
Where do you want to get those data? I will use publish Jacoco step as an example, if you want to get those data in this step, you can use context current in the script like:
current.getInstructionCoverage(),
current.getBranchCoverage(),
current.getComplexityCoverage()
But you are not able to get the number of Complexity Total, Branch Total or threshold.
Steve Luo[20/Nov/15 02:07 AM]
Where do you want to get those data? I will use publish Jacoco step as an example, if you want to get those data in this step, you can use context current in the script like:
current.getInstructionCoverage(),
current.getBranchCoverage(),
current.getComplexityCoverage()
But you are not able to get the number of Complexity Total, Branch Total or threshold.
current.getInstructionCoverage(),
current.getBranchCoverage(),
current.getComplexityCoverage()
But you are not able to get the number of Complexity Total, Branch Total or threshold.