Expand description
Robot testing framework for end-to-end app testing
This module provides a robot-style testing API that allows developers to:
- Launch real apps in a testing environment
- Perform interactions (clicks, moves, drags)
- Find and validate UI elements
- Test the full app lifecycle
§Example
use cranpose_testing::robot::create_headless_robot_test;
let mut robot = create_headless_robot_test(800, 600, || {
// Your composable app here
});
// Find and click a button
robot.click_at(100.0, 100.0);
// Wait for updates
robot.wait_for_idle();Structs§
- Element
Finder - A finder for locating and interacting with UI elements.
- Robot
Test Rule - Main robot testing rule that provides programmatic control over a real app.
- Test
HitTarget - A hit target used by TestScene.
- Test
Renderer - A simple test renderer for robot tests.
- Test
Scene - The scene used by TestRenderer.
Functions§
- create_
headless_ robot_ test - Create a headless robot test rule for testing without a real renderer.