diff --git a/src/test/java/ResultAnalyzer.java b/src/test/java/ResultAnalyzer.java index aa0a58d..2b31edc 100644 --- a/src/test/java/ResultAnalyzer.java +++ b/src/test/java/ResultAnalyzer.java @@ -54,7 +54,7 @@ public void afterAll(ExtensionContext context) throws Exception { long success = summary.get(TestResultStatus.SUCCESSFUL) != null ? summary.get(TestResultStatus.SUCCESSFUL) : 0; long failure = summary.get(TestResultStatus.FAILED) != null ? summary.get(TestResultStatus.FAILED) : 0; - long score = success / (success + failure); + double score = (double) success / (success + failure); String userId = "999999"; JSONObject json = new JSONObject();