Package io.karatelabs.core
Class BootLoader
java.lang.Object
io.karatelabs.core.BootLoader
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BootBindingloadIfPresent(Suite suite, String env) Discover + evaluatekarate-boot.jsfor the given Suite.
-
Field Details
-
BOOT_FILE_NAME
- See Also:
-
-
Method Details
-
loadIfPresent
Discover + evaluatekarate-boot.jsfor the given Suite. Returns theBootBindingso the caller can surface registered exts onSUITE_ENTER. Returnsnullwhen 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).
-