24 Commits
Author SHA1 Message Date
Thomas a267cc5678 Add per-suite integration settings 2026-09-16 08:59:03 +02:00
Bret Curtis fb8f8b8c2c Add openmw.debug.takeScreenshot() and configurable test resolution
Lua had no way to fire a screenshot. Also stops integration_tests.py merging a
caller's --config settings.cfg into the generated one, which made a same-layer
duplicate that openmw rejects, and unhardcodes the 640x480 test window.
2026-09-12 18:20:20 +02:00
elsid ac8a6b1e10 Make scripts/integration_tests.py more generic to support morrowind tests
Do not remove working directory files after tests are finished for
potential debugging.
2026-08-24 23:10:19 +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
Cody GlassmanandAlexei Kotov 2b3e24953b Disable Lua profiler by default 2026-04-04 02:07:47 +03:00
Evil Eye dca8c7c163 Add integration tests for mwscript-magic interactions 2025-07-02 17:03:33 +02: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 c298210844 Make integration_tests.py output more verbose
* Make it look more like googletest.
* Print total and failed number of tests.
* Print failed tests names.
* Print duration of each test and total.
* Hide all logs by default.
2025-03-05 22:18:46 +01:00
elsid f80c7b2355 Expect openmw.cfg to exist 2025-03-05 22:18:47 +01:00
elsid 5f26da01f1 Use the_hub addon from example suite by the integration tests 2024-08-26 21:19:04 +02:00
elsid eb6dc6e6b0 Keep generated files on integration tests failure 2024-08-26 21:19:03 +02:00
elsid 9006a8fad0 Use landracer addon from example suite by the integration tests 2024-08-26 21:19:03 +02:00
elsid fa1e574097 Use existing path variables in the generated config 2024-08-26 21:19:03 +02:00
elsid 64ebe08a78 Increase Lua memory limit for integration tests
To avoid failures like https://gitlab.com/OpenMW/openmw/-/jobs/7534143520.
2024-08-08 22:34:52 +02:00
elsid 0c0d544e38 Add test to check Lua memory limit 2024-08-03 13:28:35 +02:00
Sam Hellawell 96db8e94bd Fix forgot game section for test settings 2024-07-20 22:56:55 +01:00
Sam Hellawell b9a7bdc0c7 Dont use NormalizedView for yamlpath, use changeExtension, add setting to tests script 2024-07-20 20:15:17 +01:00
elsid e5af4322c7 Add flag to print all openmw output in integration tests 2023-12-25 10:52:01 +01:00
Petr Mikheev 69f6ab2882 Add integration test for core.getGMST 2023-06-12 17:59:40 +02:00
elsid 37be305771 Convert path to string 2023-03-01 23:30:19 +01: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
elsid 7989d1645f Run integration tests in CI 2022-07-04 20:38:29 +02:00
Petr Mikheev 76160076db Introduce OpenMW integration tests 2022-05-07 14:39:03 +02:00