wesnoth/data/test/scenarios
2019-10-02 02:54:25 +02:00
..
ai switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
break_replay_with_lua_random.cfg Lua code: replace deprecated wesnoth.set_variable() calls 2018-10-07 03:21:07 +00:00
bytecode.bin check_utf8.sh: don't check the Lua bytecode file 2018-10-07 03:23:46 +00:00
characterize_pathfinding.cfg Dunefolk faction rework by various people 2019-08-11 07:02:58 +11:00
conditionals.cfg Add SUCCEED/FAIL macros for WML test cases 2015-09-22 23:13:38 -04:00
empty_test.cfg wmlindent pass on data/test/scenarios/, safe subset 2014-07-03 19:56:35 -04:00
event_handlers_in_events.cfg Data/Test: wmlindent run 2018-03-09 11:22:00 +11:00
facing.cfg Add SUCCEED/FAIL macros for WML test cases 2015-09-22 23:13:38 -04:00
feeding.cfg disallow attacking with disabled attacks via [do_command] 2018-10-07 03:23:03 +00:00
filter_this_unit.cfg Data/Test: wmlindent run 2018-03-09 11:22:00 +11:00
filter_vision.cfg switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
for-loops.cfg Data/Test: wmlindent run 2018-03-09 11:22:00 +11:00
has_ally.cfg switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
heal.cfg Healing: Perform rest healing on turn 2. 2018-10-21 17:35:59 +00:00
interrupts.cfg Do not load helper.lua where it is not used any more 2018-10-07 03:21:10 +00:00
move_skip_sighted.cfg switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
order_of_nested_events.cfg wmlindent pass on data/test/scenarios/, safe subset 2014-07-03 19:56:35 -04:00
prestart_settings.cfg fix a bunch of typos found by codespell in data directory. 2018-02-06 23:03:06 +11:00
readme.txt Fix readme files about unit test scenarios 2014-05-19 17:13:27 -04:00
recruit_facing.cfg Lua code: replace deprecated wesnoth.set_variable() calls 2018-10-07 03:21:07 +00:00
scatter_units.cfg Add test for #3663 2018-10-27 20:40:03 +00:00
sighted_events.cfg switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
simple_find_path.cfg switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
store_locations.cfg Allow '1-infinity' in ranges, and tighten the schema's validation of ranges 2019-08-29 22:28:22 +02:00
swarm_disables_upgrades.cfg Add WML unit test for unupgradable (#3336) 2018-10-28 02:53:08 +00:00
test_assert.cfg wmlindent pass on data/test/scenarios/, safe subset 2014-07-03 19:56:35 -04:00
test_berzerk_firststrike.cfg wmlindent pass on data/test/scenarios/, safe subset 2014-07-03 19:56:35 -04:00
test_check_victory.cfg switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
test_clear.cfg Lua code: replace deprecated wesnoth.get_all_vars() calls 2018-10-07 03:21:08 +00:00
test_cve_2018_1999023.cfg Extend the first CVE-2018-1999023 unit test to also try loadstring() 2018-10-07 03:23:50 +00:00
test_cve_2018_1999023_2.cfg wml test for cve-2018-1999023 2018-10-07 03:23:46 +00:00
test_dofile.cfg Lua code: replace deprecated wesnoth.set_variable() calls 2018-10-07 03:21:07 +00:00
test_end_turn.cfg Add SUCCEED/FAIL macros for WML test cases 2015-09-22 23:13:38 -04:00
test_event_names_and_order.cfg Added some event unit tests by @Pentarctagon 2018-01-11 13:12:28 -05:00
test_for_tag.cfg Add WML unit tests for [for] tag 2017-06-21 21:18:24 -05:00
test_grunt_tod_damage.cfg switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
test_lua.cfg Lua code: replace deprecated wesnoth.set_variable() calls 2018-10-07 03:21:07 +00:00
test_lua_wml.cfg Lua code: replace deprecated wesnoth.set_variable() calls 2018-10-07 03:21:07 +00:00
test_lua_wml_tagnames.cfg Lua API: Allow WML tags with leading underscore (#3877) 2019-01-19 15:02:10 +02:00
test_max_menu_items.cfg Ran wmlindnet on unit tests. Some formatting had to be manually corrected 2015-01-05 20:42:12 +11:00
test_menu_items.cfg WML Unit Tests: Fix issues found by the schema validator 2018-10-23 22:49:45 -04:00
test_move.cfg switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
test_move_unit.cfg Add SUCCEED/FAIL macros for WML test cases 2015-09-22 23:13:38 -04:00
test_movetype.cfg switch from map_data to map_file in SP 2019-10-02 02:54:25 +02:00
test_relative_dir.cfg Allow launching test scenarios from the titlescreen 2017-05-04 19:20:44 -04:00
test_require.cfg Lua code: replace deprecated wesnoth.set_variable() calls 2018-10-07 03:21:07 +00:00
test_return.cfg refactor assert, return, two_plus_two, to each be one file 2014-05-16 22:45:54 -04:00
test_role_types.cfg Add SUCCEED/FAIL macros for WML test cases 2015-09-22 23:13:38 -04:00
test_unit_map.cfg Replace most instances of a single-hex [terrain_mask] action with [terrain] 2015-10-07 17:00:53 +11:00
test_victory_attacks.cfg Fix WML unit tests 2015-10-07 20:09:57 -04:00
two_plus_two.cfg refactor assert, return, two_plus_two, to each be one file 2014-05-16 22:45:54 -04:00
unit_spawns_at_nearest_vacant_hex.cfg wmlindent pass on data/test/scenarios/, safe subset 2014-07-03 19:56:35 -04:00
units_offmap_goto_recall.cfg wmlindent pass on data/test/scenarios/, safe subset 2014-07-03 19:56:35 -04:00
xp_mod.cfg Ran wmlindnet on unit tests. Some formatting had to be manually corrected 2015-01-05 20:42:12 +11:00

This directory contains both the scenarios used by C++ unit tests and those which are
WML unit tests.

For the C++ unit tests, it is recommended to reuse the same scenario file as much as possible
and just inject WML into it.
Injection can be done by adding a config object containing event code and then registering that
manually for game_events.

WML unit tests are self-contained scenario files to test a specific area of WML. They can be
implemented with the GENERIC_UNIT_TEST macro.