Commit graph

7 commits

Author SHA1 Message Date
Oleg Agafonov
e866707912 test framework improves:
- now game logs will show stack ability on push and on resolve (before any choices);
- now game logs will show used choices made by cast/activate, setChoice, setMode and addTarget commands (not work for AI tests, part of #13832);
- improved choice logic for modes and yes/not dialogs (now it's use a more strictly checks, use TestPlayer.MODE_SKIP to stop mode selection);
- improved error logs and testable dialogs menu in cheat mode;
2025-08-04 23:53:16 +04:00
Oleg Agafonov
4732fdf527 tests: improved testable dialogs (added assert messages in result table, added single dialog debugging, part of #13643, #13638); 2025-06-15 11:02:50 +04:00
Oleg Agafonov
361c320890 tests: added automated tests to run all possible dialogs under AI (WIP, part of #13643, improved testable dialogs from #13638); 2025-06-14 16:20:24 +04:00
Oleg Agafonov
1112c9516d other: added getMultiAmount testable dialogs in cheat menu (part of #13638) 2025-06-07 08:50:29 +04:00
Oleg Agafonov
832ff8a4ac other: added getAmount testable dialogs in cheat menu (part of #13638) 2025-05-17 21:19:55 +04:00
Oleg Agafonov
fa20361e2e other: added announceX testable dialogs in cheat menu (part of #10330) 2025-05-16 19:36:01 +04:00
Oleg Agafonov
133e4fe425
other: reworked target selection: (#13638)
- WIP: AI and multi targets, human and X=0 use cases, human and impossible targets use cases;
- improved stability and shared logic (related to #13606, #11134, #11666, continue from a53eb66b58, close #13617, close #13613);
- improved test logs and debug info to show more target info on errors;
- improved test framework to support multiple addTarget calls;
- improved test framework to find bad commands order for targets (related to #11666);
- fixed game freezes on auto-choice usages with disconnected or under control players (related to #11285);
- gui, game: fixed that player doesn't mark avatar as selected/green in "up to" targeting;
- gui, game: fixed small font in some popup messages on big screens (related to #969);
- gui, game: added min targets info for target selection dialog;
- for devs: added new cheat option to call and test any game dialog (define own dialogs, targets, etc in HumanDialogsTester);
- for devs: now tests require complete an any or up to target selection by addTarget + TestPlayer.TARGET_SKIP or setChoice + TestPlayer.CHOICE_SKIP (if not all max/possible targets used);
- for devs: added detail targets info for activate/trigger/cast, can be useful to debug unit tests, auto-choose or AI (see DebugUtil.GAME_SHOW_CHOOSE_TARGET_LOGS)
2025-05-16 13:55:54 +04:00