use of hudson.plugins.cobertura.targets.CoverageResult in project phabricator-jenkins-plugin by uber.
the class CoberturaPluginCoverageProviderTest method conversion.
@Test
public void conversion() {
CoverageResult result = getMockResult();
CodeCoverageMetrics metrics = CoberturaPluginCoverageProvider.convertCobertura(result);
assertEquals(75.0f, metrics.getLineCoveragePercent(), 0.0f);
assertEquals(0.0f, metrics.getPackageCoveragePercent(), 0.0f);
}
Aggregations