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:

    1. Rule evaluation remains deterministic under integrated runtime context.
    2. Validation outcomes preserve expected success/failure semantics.
    3. 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 = 8

  • Constant: MINIMAL_TILE_MAP_SIZE: int = 1

  • Constant: PERFORMANCE_TEST_ITERATIONS: int = 100

  • Constant: MULTIPLE_RULE_TEST_ITERATIONS: int = 10

  • Constant: SINGLE_RULE_TIMEOUT_MS: int = 50

  • Constant: MULTIPLE_RULE_TIMEOUT_MS: int = 100

  • Constant: EXPECTED_RULE_COUNT: int = 3

  • Constant: EDGE_POSITION_COUNT: int = 5

  • Constant: CENTER_POSITION_X: int = 4

  • Constant: CENTER_POSITION_Y: int = 4

  • Constant: OUTSIDE_BOUNDS_X: int = 10

  • Constant: OUTSIDE_BOUNDS_Y: int = 10

Public Methods

before

1
before() -> void

before_test

1
before_test() -> void

after_test

1
after_test() -> void

after

1
after() -> void

create_rule

1
create_rule(rule_type: GDScript) -> Object

Creates a rule instance and automatically frees it after the test


create_all_rules

1
create_all_rules() -> Array[Object]

Creates all standard rule types and returns them as an array


assert_rule_valid

1
assert_rule_valid(rule: Object) -> void

Performs basic rule validation assertion


time_execution

1
time_execution(callable: Callable) -> int

Times a block of code and returns the processing time in milliseconds


test_tile_check_rule_creation

1
test_tile_check_rule_creation() -> void

test_tile_check_rule_basic_validation

1
test_tile_check_rule_basic_validation() -> void

test_collisions_check_rule_creation

1
test_collisions_check_rule_creation() -> void

test_collisions_check_rule_with_indicator

1
test_collisions_check_rule_with_indicator() -> void

test_collisions_check_rule_validation_results

1
test_collisions_check_rule_validation_results() -> void

test_within_bounds_rule_creation

1
test_within_bounds_rule_creation() -> void

test_within_bounds_rule_boundary_checking

1
test_within_bounds_rule_boundary_checking() -> void

test_within_bounds_rule_edge_cases

1
test_within_bounds_rule_edge_cases() -> void

test_multiple_rules_combination

1
test_multiple_rules_combination() -> void

test_rule_validation_chain

1
test_rule_validation_chain() -> void

test_rule_error_handling

1
test_rule_error_handling() -> void

test_rule_performance_single

1
test_rule_performance_single() -> void

test_rule_performance_multiple

1
test_rule_performance_multiple() -> void

test_rule_configuration_properties

1
test_rule_configuration_properties() -> void

test_rule_serialization_compatibility

1
test_rule_serialization_compatibility() -> void


Grid Building v5.0.8 | Generated 24/05/2026