diff --git a/karate-core/src/main/java/com/intuit/karate/cli/IntellijHook.java b/karate-core/src/main/java/com/intuit/karate/cli/IntellijHook.java index 000897997..f3f8ff3eb 100644 --- a/karate-core/src/main/java/com/intuit/karate/cli/IntellijHook.java +++ b/karate-core/src/main/java/com/intuit/karate/cli/IntellijHook.java @@ -48,7 +48,7 @@ public void beforeSuite(Suite suite) { public boolean beforeScenario(ScenarioRuntime sr) { if (sr.caller.depth == 0) { Scenario scenario = sr.scenario; - String path = scenario.getFeature().getResource().getRelativePath(); + String path = scenario.getFeature().getResource().getUri().toString(); log(String.format(TEMPLATE_TEST_STARTED, getCurrentTime(), path + ":" + scenario.getLine(), escape(scenario.getRefIdAndName()))); // log(String.format(TEMPLATE_SCENARIO_STARTED, getCurrentTime())); } @@ -71,7 +71,7 @@ public void afterScenario(ScenarioRuntime sr) { public boolean beforeFeature(FeatureRuntime fr) { if (fr.caller.depth == 0) { Feature feature = fr.feature; - String path = feature.getResource().getRelativePath(); + String path = feature.getResource().getUri().toString(); log(String.format(TEMPLATE_TEST_SUITE_STARTED, getCurrentTime(), path + ":" + feature.getLine(), escape(feature.getNameForReport()))); } return true;