Skip to content

Commit 5fe0738

Browse files
committed
call & callonce functions fix
1 parent 547c624 commit 5fe0738

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

allure-karate/src/main/java/io/qameta/allure/karate/AllureKarate.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ public boolean beforeStep(final Step step,
173173
return true;
174174
}
175175

176+
if (step.getText().startsWith("call") || step.getText().startsWith("callonce")) {
177+
return true;
178+
}
179+
176180
final String uuid = parentUuid + "-" + step.getIndex();
177181
final io.qameta.allure.model.StepResult stepResult = new io.qameta.allure.model.StepResult()
178182
.setName(step.getText());
@@ -190,6 +194,10 @@ public void afterStep(final StepResult result,
190194
return;
191195
}
192196

197+
if (step.getText().startsWith("call") || step.getText().startsWith("callonce")) {
198+
return;
199+
}
200+
193201
final Step step = result.getStep();
194202
final String uuid = parentUuid + "-" + step.getIndex();
195203

0 commit comments

Comments
 (0)