aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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