Files
DarkflameServer/tests/dGameTests/dComponentsTests/CMakeLists.txt
copilot-swe-agent[bot] a18a3f5b25 Add comprehensive BouncerComponent serialization tests
- Add 4 tests covering BouncerComponent serialization behavior
- Test pet enabled/disabled states and bouncer activation combinations
- Validate conditional serialization logic (only writes bouncer state when pet enabled)
- Test initial update vs regular update behavior consistency
- All tests pass, ensuring pet bouncer mechanics network correctly

Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 20:15:04 +00:00

24 lines
767 B
CMake

set(DCOMPONENTS_TESTS
"ActivityComponentTests.cpp"
"BouncerComponentTests.cpp"
"DestroyableComponentTests.cpp"
"HavokVehiclePhysicsComponentTests.cpp"
"ModelComponentTests.cpp"
"MovingPlatformComponentTests.cpp"
"PetComponentTests.cpp"
"SimplePhysicsComponentTests.cpp"
"SavingTests.cpp"
)
# Get the folder name and prepend it to the files above
get_filename_component(thisFolderName ${CMAKE_CURRENT_SOURCE_DIR} NAME)
list(TRANSFORM DCOMPONENTS_TESTS PREPEND "${thisFolderName}/")
# Export to parent scope
set(DCOMPONENTS_TESTS ${DCOMPONENTS_TESTS} PARENT_SCOPE)
# Copy test files to testing directory
add_subdirectory(TestData)
list(TRANSFORM COMPONENT_TEST_DATA PREPEND "${thisFolderName}/")
set(COMPONENT_TEST_DATA ${COMPONENT_TEST_DATA} PARENT_SCOPE)