Search code examples
karateintuit-partner-platform

How to integrate Cucumber reporting with normal runner (not parallel) in Karate


I see two demo runners, one normal runner (DemoTest : Sequential) and another parallel runner(DemoTestParallel). The reporting with the DemoTest runner is Karate reporting but the one with DemoTestParallel runner is cucumber reporting. How do I use cucumber reporting with sequential runner (i.e. not parallel runner).


Solution

  • I think you are looking for the new Java API which you can pass a set of files (or a single file) and get the Cucumber report. This is available in 0.8.0.RC8. You can use it anywhere in a normal class or a JUnit class etc.

    Here is an example: DemoTestSelected.java