15 Commits
Author SHA1 Message Date
Thomas 2ba8279513 Add a stationary weapon damage test
Keep the original navigation and combat scenario under a clearer name.
2026-09-11 10:33:07 +02:00
elsid e2acaa9e71 Automatically discover Lua tests
To avoid duplicated tests registration.

Start discovery by sending an event. First for global tests and the for
local inside global event handler with timeout. Check for duplicates.

Check coroutine status after the end of a test to catch failures not
caused by asserts.

Support bypass in the menu.newGame to start morrowind tests from a menu
script skipping intro video.

Add --list_tests flag to print all found tests.
2026-08-19 23:26:45 +02:00
elsid fd26d00596 Support tests filtering in Lua integration tests
Generate a Lua module by integration_tests.py with configured filter and
load it by test scripts.
2026-07-12 20:10:18 +02:00
elsid 536325e0ba Add test for saving and loading the game 2025-03-25 23:40:58 +01:00
elsid cbcd4f6acd Move matchers to different module 2025-03-25 23:24:24 +01:00
elsid 0e19b1dd75 Run Lua integration tests starting with menu script
This allows writing tests for menu scripts.

Keep global script as entry point to morrowind tests.

Fix menu.newGame and menu.loadGame to hide main menu.
2025-03-08 13:14:20 +01:00
elsid 7a9c2d5e88 Split local and global event handlers 2025-03-05 22:18:46 +01:00
elsid 981ca957c1 Register global tests to run them 2025-03-05 22:18:46 +01:00
elsid 7998689080 Add test for player's attack 2024-08-27 20:09:19 +02:00
elsid a416125cdf Format Lua code 2024-07-31 23:19:11 +02:00
elsid f5b24efdca Enable built-in script in the integration tests 2024-07-31 23:19:10 +02:00
elsid 323a8355d5 Add test to make sure player rotation does not lead to nan 2024-07-17 23:36:51 +02:00
elsid 94b085af9e Add Navigator and Lua API function to find nearest position on navmesh 2023-11-18 23:54:37 +01:00
elsid 5a0ad8cdd7 Add Morrowind specific tests 2023-07-22 01:31:55 +02:00
elsid 0389aa2b7e Move testing_util.lua to a separate directory to be reused as a library 2022-10-10 23:39:32 +02:00