godot_testability_runtime/
lib.rs

1//! # Godot Testability Runtime
2//!
3//! An embedded Godot runtime for Rust testing, inspired by SwiftGodot's testability framework.
4//! Enables running tests within a real Godot runtime environment with full engine API access.
5//!
6//! ## Quick Start
7//!
8//! ```rust,ignore
9//! use godot::prelude::*;
10//! use godot_testability_runtime::prelude::*;
11//! use godot_testability_runtime::godot_test_main;
12//!
13//! fn test_vectors(scene_tree: &mut Gd<SceneTree>) -> TestResult<()> {
14//!     let v = Vector2::new(1.0, 2.0);
15//!     assert_eq!(v.x, 1.0);
16//!     Ok(())
17//! }
18//!
19//! godot_test_main! {
20//!     test_vectors,
21//! }
22//! ```
23
24pub mod error;
25pub mod prelude;
26pub mod runtime;
27pub mod test_main;
28
29// FFI bindings to libgodot (enabled by default)
30#[cfg(feature = "embedded_runtime")]
31pub mod ffi;
32
33pub use error::{TestError, TestResult};
34pub use runtime::GodotRuntime;
35
36// Private re-export for macro use
37#[doc(hidden)]
38pub mod __private {
39    pub use libtest_mimic;
40}