Skip to content

Commit fad4223

Browse files
committed
Update karate example
1 parent aac9df4 commit fad4223

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.epam.reportportal.example.karate;
22

33
import com.epam.reportportal.karate.KarateReportPortalRunner;
4-
import com.epam.reportportal.karate.ReportPortalHook;
54
import com.intuit.karate.Results;
65
import org.junit.jupiter.api.Assertions;
76
import org.junit.jupiter.api.Test;
@@ -10,12 +9,11 @@ public class KarateRunnerTest {
109

1110
@Test
1211
public void testAll() {
13-
ReportPortalHook hook = new ReportPortalHook();
14-
Results results = KarateReportPortalRunner.path("classpath:features")
15-
.hook(hook)
16-
.outputCucumberJson(true)
17-
.tags("~@ignore")
18-
.parallel(2);
12+
Results results = KarateReportPortalRunner // Our runner with a Karate Hook
13+
.path("classpath:features") // Path with feature files
14+
.outputCucumberJson(true) // Generate cucumber report
15+
.tags("~@ignore") // Ignore tests marked with the tag
16+
.parallel(2); // Run in 2 Threads
1917
Assertions.assertEquals(0, results.getFailCount(), "Non-zero fail count.\n Errors:\n" + results.getErrorMessages());
2018
}
2119
}

0 commit comments

Comments
 (0)