Class BootLoader

java.lang.Object
io.karatelabs.core.BootLoader

public final class BootLoader extends Object
Discovers karate-boot.js (workdir root, then classpath root) and evaluates it once per Suite. The boot file is ext-scripting only — its JS scope is discarded after evaluation; the side effects (exts registered on Suite) are the only output. See AGENT_KARATE.md K43.
  • Field Details

  • Method Details

    • loadIfPresent

      public static BootBinding loadIfPresent(Suite suite, String env)
      Discover + evaluate karate-boot.js for the given Suite. Returns the BootBinding so the caller can surface registered exts on SUITE_ENTER. Returns null when no boot file is present (the common case — boot is opt-in).
      Throws:
      RuntimeException - when boot is present but evaluation fails (Suite must fail loud per K43).