Skip to content

Commit

Permalink
Change the test path inside the metrics to be inserted inside the dat…
Browse files Browse the repository at this point in the history
…abase properly
  • Loading branch information
surli committed May 2, 2017
1 parent 44272d3 commit 282fef5
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ public Object call() throws Exception {
nopolInformation.setNbStatements(result.getNbStatements());
nopolInformation.setNbAngelicValues(result.getNbAngelicValues());

metric.addAngelicValueByTest(failureLocation.getClassName(), result.getNbAngelicValues());
metric.addNbStatementByTest(failureLocation.getClassName(), result.getNbStatements());
metric.addExecutedLinesByTest(failureLocation.getClassName(), -1);
String failureLocationWithoutDots = failureLocation.getClassName().replace('.','/');

metric.addAngelicValueByTest(failureLocationWithoutDots, result.getNbAngelicValues());
metric.addNbStatementByTest(failureLocationWithoutDots, result.getNbStatements());
metric.addExecutedLinesByTest(failureLocationWithoutDots, -1);

patch = result.getPatches();
if (patch != null && !patch.isEmpty()) {
Expand Down

0 comments on commit 282fef5

Please sign in to comment.