Package io.karatelabs

Class Main

java.lang.Object
io.karatelabs.Main
All Implemented Interfaces:
Callable<Integer>

public class Main extends Object implements Callable<Integer>
Main entry point for the Karate CLI.

Supports two usage modes:

  • Subcommand mode: karate run src/test/features
  • Legacy mode: karate src/test/features (delegates to run)

When invoked without arguments, looks for karate.json in the current directory.

  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args)
    • call

      public Integer call()
      Specified by:
      call in interface Callable<Integer>
    • parse

      public static Main parse(String... args)
      Parse command-line arguments without executing. Useful for integrating with other tools.