class
Lapis::Test::ColdBootContext
- Lapis::Test::ColdBootContext
- Reference
- Object
Overview
Encapsulates a dedicated, completely isolated ephemeral Godot engine environment for tests requiring cold boot execution without polluting the shared engine or project.
Defined in:
libgodot/testing.crConstructors
Instance Method Summary
-
#cleanup : Void
Guarantees that ephemeral sandbox files are completely wiped upon completion.
- #godot_exe : String
-
#run_isolated_project(args : Array(String) = [] of String) : TestResult
Executes the isolated project in headless runtime mode
-
#run_isolated_script(script_rel_path : String, args : Array(String) = [] of String) : TestResult
Runs an isolated script in a dedicated headless Godot process with complete environment isolation.
- #sandbox_dir : String
- #test_name : String
-
#write_file(rel_path : String, content : String) : String
Writes an isolated scene, resource, or configuration file into the sandbox.
-
#write_script(rel_path : String, code : String) : String
Writes an isolated test script into the ephemeral sandbox.
Constructor Detail
Instance Method Detail
Executes the isolated project in headless runtime mode
Runs an isolated script in a dedicated headless Godot process with complete environment isolation.
Writes an isolated scene, resource, or configuration file into the sandbox.