aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2025-04-13Tests: Add missing includeFabian
(cherry picked from commit 084d9d37b17d7a3b91d26bc224b67daa37c13109)
2024-09-10fix tests buildShauren
2024-03-14GCC build fixShauren
(cherry picked from commit b705283d0e6c1619ea3e436a15d40a0670caf1a3)
2024-03-13Tests: Disable intentionally triggered warning in test codeShauren
(cherry picked from commit 37899f395476c5f1c9d092a8f8425d2a379eeac7)
2024-03-13Core/Utils: unique_trackable_ptr improvementsShauren
* Added comparison operators * Added type casting helper functions (cherry picked from commit f690b693386ef44754fa4528f3c565d563ad9468)
2024-03-13Fix tests buildShauren
(cherry picked from commit 1f3ebbb23cea1778ddc5ca52941861a98b667530)
2024-03-13Core/Utils: Added a custom smart pointer type unique_trackable_ptr - a ↵Shauren
specialized variant of std::shared_ptr that enforces unique ownership * This is intended to be used by external code unable to track object lifetime such as custom scripting engines (cherry picked from commit 32e54b6bd168c196adb45360b18721851162d731)
2023-08-12Tests: Fixed environment variable confg test compilation on windowsShauren
(cherry picked from commit cd62dc44916cd2d3e9522e1373e27bd01b27c84f)
2023-08-12Core/Misc: Remove boost::heap::fibonacci_heap from header filesShauren
(cherry picked from commit e8e330addd55dffa8e34716c7e1969ad243d65b3)
2023-08-12Core/Utils: Replace boost flat_set with our ownShauren
(cherry picked from commit 42fbcf2fc58690346ef1db12803b79634985d44f)
2021-08-19Core/Config: Implement config override with env vars (#26811)Anton Popovichenko
* Core/Config: Implement config override with env vars Implement overriding of configuration from the .conf file with environment variables. Environment variables keys are autogenerated based on the keys defined in .conf file. Usage example: $ export TC_DATA_DIR=/usr $ TC_WORLD_SERVER_PORT=8080 ./worldserver * Core/Config Fix typo in logs Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> * Core/Config Fix code style in EnvVarForIniKey Co-authored-by: Shauren <shauren.trinity@gmail.com> * Update tests/common/Config.cpp * Apply suggestions from code review Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> * Apply suggestions from code review Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> Co-authored-by: Anton Popovichenko <anton.popovichenko@mendix.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> Co-authored-by: Shauren <shauren.trinity@gmail.com> Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>
2020-09-20[3.3.5] ChatCommands, the other half: chat command resolution refactor (PR ↵Treeston
#25463)
2020-09-12Core/Chat: Fix hyperlink validation for inspected item links, for real this ↵Treeston
time.
2020-09-12[3.3.5] Core/ChatCommands: Show error messages from argument parsers (PR #25443)Treeston
2020-09-06Revert "Tests: Use .empty() to test for empty string instead of == """Treeston
This reverts commit 697fb48747ae2fd26a99ae061d3e2fcd8e75502b.
2020-09-06Tests: Use .empty() to test for empty string instead of == ""Carbenium
2020-09-02Common/Util: Trinity::StringTo<double> support (PR #25364)Treeston
2020-09-02UnitTests: |Hspell and |Htalent unit testingTreeston
2020-09-01Core/Misc: More DBC std::array refactors, stricter |Hitem checks, and more ↵Treeston
hyperlink unit tests
2020-09-01Core/Misc: DBC std::array refactors, and |Hachievement unit testsTreeston
2020-08-31UnitTests: Add a first set of item hyperlink testsTreeston
2020-08-30UnitTests: Add basic hyperlink unit testTreeston
2020-08-30Core/ChatCommands: C++17 cleanup (again) (PR #25323)Treeston
2020-08-29UnitTests: Cleanup + StringConvert/ChatCommand tests (PR #25353)Treeston
2020-08-29Build/Tests: Set all our compile flags on testsShauren
Closes #25349
2020-08-28Build: Put tests-common and sfmt under correct folders when WITH_SOURCE_TREE ↵Shauren
is set to hierarchical-folders
2020-08-01Core/Common: Merge TimeTrackerSmall with TimeTrackerCarbenium
2020-08-01Core/Common: Add a std::chrono interface to TimeTrackerSmallCarbenium
New methods: TimeTrackerSmall(Milliseconds expiry); void Update(Milliseconds diff); void Reset(Milliseconds expiry) Milliseconds GetExpiry() const Removed methods: int32 GetExpiry() const Also add basic unit tests. Core/Scripts: Use std::chrono interface of TimeTrackerSmall
2020-07-26tests/EventMap: Add tests for RepeatCarbenium
2020-07-26Core/EventMap: Clarify documentation of ScheduleEventCarbenium
2020-07-26Core/EventMap: Unify semantics of DelayEventsCarbenium
DelayEvents(Milliseconds delay) had different semantics than DelayEvents(Milliseconds delay, uint32 group). The first method delayed the events only in the case the internal timer already ticked at least for the amount of delay. In contrast the latter method delayed events regardless of the internal timer value. Use the latter semantics for DelayEvents(Milliseconds delay) as well which makes the outcome more predictable. Adapt tests accordingly.
2020-07-26tests/EventMap: Test for event past it's execution timeCarbenium
With the switch to std::chrono return type of GetTimeUntilEvent we don't run into an overflow condition which happend with the previous uint32 return value if the events scheduled execution time is in the past. Test for this case.
2020-07-26EventMap: Change GetTimeUntilEvent to return std::chrono typesCarbenium
2020-07-24tests: Add some basic tests for EventMapCarbenium
2020-07-24dep: Add catch2 unit test framework and wire it upCarbenium
To enable the test suite, make sure to configure CMake with -DBUILD_TESTING=1 , since it is disabled by default. The catch2 dependency will be downloaded during configure time. Also add a new target "tests-common", which includes unit tests for the "common" project. To finally run the tests use the "test" target. CircleCI: Run unit tests