File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
example-karate/src/test/java/com/epam/reportportal/example/karate Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 11package com .epam .reportportal .example .karate ;
22
33import com .epam .reportportal .karate .KarateReportPortalRunner ;
4- import com .epam .reportportal .karate .ReportPortalHook ;
54import com .intuit .karate .Results ;
65import org .junit .jupiter .api .Assertions ;
76import 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}
You can’t perform that action at this time.
0 commit comments