Commit Graph

16 Commits

Author SHA1 Message Date
Aronwk
e66f82ff07 manually coerce tests and remove uneeded or ones that will neeed much more work 2025-09-01 21:37:32 -05:00
copilot-swe-agent[bot]
316e0bc47e Fix failing component tests and add missing component tests with submodule initialization
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-09-01 16:00:35 +00:00
copilot-swe-agent[bot]
9274494023 Fix component test compilation issues and enable all component tests
- Add missing component test files to CMakeLists.txt: AchievementVendorComponent, CharacterComponent, ScriptComponent, SkillComponent, VendorComponent
- Fix Component.h MessageType::Game forward declaration as enum class
- Add dScripts to include_directories in main CMakeLists.txt for CppScripts.h access
- Fix ScriptComponent test by adding GameMessages.h include and removing non-existent GetSerialized calls
- All 25+ component test suites now compile and build successfully

Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 23:28:33 +00:00
copilot-swe-agent[bot]
0a06698514 Fix PetComponent and QuickBuildComponent tests, successful build with 19+ component test suites
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 23:00:34 +00:00
copilot-swe-agent[bot]
856186636f Continue adding component tests: AchievementVendor, Character, QuickBuild, Script, Skill, Vendor tests (compilation fixes needed)
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 22:54:34 +00:00
copilot-swe-agent[bot]
f4a9cd21be Add DonationVendorComponent, ItemComponent, LevelProgressionComponent, MiniGameControlComponent tests and enhance PetComponent tests
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 22:37:18 +00:00
copilot-swe-agent[bot]
94acddc3e9 Add CollectibleComponent and LUPExhibitComponent serialization tests
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 22:01:45 +00:00
copilot-swe-agent[bot]
6bb8040221 Add BaseCombatAIComponent serialization tests (needs CDClient table implementation)
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 21:54:14 +00:00
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
copilot-swe-agent[bot]
14915000ab Add comprehensive ActivityComponent serialization tests
- Add 4 tests covering ActivityComponent serialization behavior
- Test no players, players with data, initial update, and not dirty scenarios
- Use ScriptedActivityComponent (concrete implementation) for Entity template system compatibility
- Validate activity player data serialization format with 10 float values per player
- All tests pass, verifying network data transmission correctness

Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 20:09:24 +00:00
copilot-swe-agent[bot]
621f85f0af Complete component serialization tests with HavokVehiclePhysicsComponent
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 19:26:41 +00:00
copilot-swe-agent[bot]
f86024e06d Add MovingPlatformComponent and ModelComponent serialization tests
Co-authored-by: aronwk-aaron <26027722+aronwk-aaron@users.noreply.github.com>
2025-08-31 19:23:28 +00:00
David Markowitz
adc9cd2876 feat: Add some save data tests (#1623)
* saving from a test works

* testing works

* Update SavingTests.cpp

* test dServer stuff

* tests

* use dummy database and add missing pure fns

* add more tests

* add more tests

* add rocket tests

* Update BuffComponent.h

* Update test_xml_data.xml

* Update SavingTests.cpp

* update
2024-11-17 16:27:33 -08:00
jadebenn
4a50c60559 chore: Assorted pet improvements (#1402)
* Assorted pet improvements

* remove unecessary include

* updates to address some feedback

* fixed database code for testing

* Removed reference member (for now)

* Removed cmake flag
2024-01-08 15:32:09 -08:00
David Markowitz
ad003634f4 chore: Physics Component abstraction and addition of tests (#1159)
* Make serialize actually virtual

yep

* Abstract to PhysicsComponent

Move shared functionality of all physics related classes to a base class.

Tested that there were no failed to unserialize errors when in main gameplay in Gnarled Forest or in a race.

Tested that 2 players were able to see each other in the above scenarios just fine as well.

* Update PhantomPhysicsComponent.cpp

* Add SimplePhysicsTest

* Add construction test

* Update SimplePhysicsComponentTests.cpp

* remove flags and fix override

* Update VendorComponent.h
2023-10-09 15:19:38 -05:00
David Markowitz
1464762bcd Implement GTest and change windows output path
Implement GTest as a testing infrastructure.
Make windows output binaries to the build folder instead of the release type folder (potentially issue further down the line)
Add a simple unit test for DestroyableComponent
2022-11-07 00:12:35 -08:00