rule_system_integration_tests
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Source File: /addons/grid_building/test/rules/validation/rule_system_integration_tests.gd
Extends: GdUnitTestSuite
Properties
- Property:
runner: GdUnitSceneRunner - Property:
env: [AllSystemsTestEnvironment](./all-systems-test-environment/)
Constants
Constant:
TEST_CONTAINER: [GBCompositionContainer](./gb-composition-container/) = preload("res://addons/grid_building/test/resources/composition_containers/test_composition_container.tres")============================================================================== BEHAVIOR CONTRACTS
This suite validates 5.0 rule workflow behavior described in:
- Guide: placement-workflow.md
- Guide: placement-rules.md
- Guide: validation.md
Contracts verified:
- Rule evaluation remains deterministic under integrated runtime context.
- Validation outcomes preserve expected success/failure semantics.
- Multi-rule execution remains stable across repeated runs.
============================================================================== Consolidated rule tests Combines all rule-related tests into a single comprehensive suite
Constant:
DEFAULT_TILE_MAP_SIZE: int = 8Constant:
MINIMAL_TILE_MAP_SIZE: int = 1Constant:
PERFORMANCE_TEST_ITERATIONS: int = 100Constant:
MULTIPLE_RULE_TEST_ITERATIONS: int = 10Constant:
SINGLE_RULE_TIMEOUT_MS: int = 50Constant:
MULTIPLE_RULE_TIMEOUT_MS: int = 100Constant:
EXPECTED_RULE_COUNT: int = 3Constant:
EDGE_POSITION_COUNT: int = 5Constant:
CENTER_POSITION_X: int = 4Constant:
CENTER_POSITION_Y: int = 4Constant:
OUTSIDE_BOUNDS_X: int = 10Constant:
OUTSIDE_BOUNDS_Y: int = 10
Public Methods
before
| |
before_test
| |
after_test
| |
after
| |
create_rule
| |
Creates a rule instance and automatically frees it after the test
create_all_rules
| |
Creates all standard rule types and returns them as an array
assert_rule_valid
| |
Performs basic rule validation assertion
time_execution
| |
Times a block of code and returns the processing time in milliseconds
test_tile_check_rule_creation
| |
test_tile_check_rule_basic_validation
| |
test_collisions_check_rule_creation
| |
test_collisions_check_rule_with_indicator
| |
test_collisions_check_rule_validation_results
| |
test_within_bounds_rule_creation
| |
test_within_bounds_rule_boundary_checking
| |
test_within_bounds_rule_edge_cases
| |
test_multiple_rules_combination
| |
test_rule_validation_chain
| |
test_rule_error_handling
| |
test_rule_performance_single
| |
test_rule_performance_multiple
| |
test_rule_configuration_properties
| |
test_rule_serialization_compatibility
| |
Grid Building v5.0.8 | Generated 24/05/2026