19669 Commits

Author SHA1 Message Date
Chris Beck
d129d80ebe Add unit tests for check victory function
Mainly focused on defeat_condition field right now... woudl be good
to add some that test victory_when_enemies_defeated.
2014-05-22 17:21:53 -04:00
ln-zookeeper
86fe11bb24 Fixed repeated dialogue 2014-05-22 17:36:14 +03:00
Elvish_Hunter
2dbca0c3f1 wmllint GUI: avoid showing a blank Tk window if the program is run outside of a Wesnoth directory 2014-05-21 10:43:54 +02:00
Elvish_Hunter
385384de86 wmllint GUI: verbosity level radiobutton, Normal -> Terse 2014-05-21 10:43:54 +02:00
Elvish_Hunter
ef81cbad61 wmllint GUI: moved the exit button to the right side of the window 2014-05-21 10:43:54 +02:00
Elvish_Hunter
82e1126094 wmllint GUI: removed verbs from option labelframe labels 2014-05-21 10:43:53 +02:00
Elvish_Hunter
241015fa05 wmllint GUI: made two labelframe labels shorter 2014-05-21 10:43:53 +02:00
Elvish_Hunter
f3012b50db wmllint GUI: used a smaller icon for the Browse button, and made the entry fill the whole frame 2014-05-21 10:43:52 +02:00
aquileia
8136065f75 Fix readme files about unit test scenarios 2014-05-19 17:13:27 -04:00
Chris Beck
ab29ba7e43 add map location rotate wml interface 2014-05-19 16:29:07 -04:00
Chris Beck
3f5350a5ef add wml relative dir query tag, and interactive test scenario 2014-05-19 14:35:07 -04:00
Charles Dang
4613e5a619 AOI S7: removed [ai] tag from player side 2014-05-17 18:49:35 -04:00
Charles Dang
5cc1d2f9e2 AOI S7: removed redundant difficulty-conditional recruit list 2014-05-17 18:49:31 -04:00
Chris Beck
86fea3c551 add unit test for berzerk + firststrike interaction 2014-05-16 23:53:28 -04:00
Chris Beck
4e16a998a2 refactor break_replay tests into one file 2014-05-16 22:54:03 -04:00
Chris Beck
8d161347bc refactor assert, return, two_plus_two, to each be one file 2014-05-16 22:45:54 -04:00
Chris Beck
bf2dda129c refactor sighted events test to be one file 2014-05-16 22:37:13 -04:00
Chris Beck
af4b671266 add unit test for basic unit map functionality 2014-05-16 22:23:48 -04:00
Chris Beck
d7374f4080 add test_move unit tests 2014-05-16 21:25:23 -04:00
Chris Beck
9964be2849 fixup move_skip_sighted tests 2014-05-16 20:29:26 -04:00
Chris Beck
2c486ed699 add tests of the [move] skip_sighted_option
This is partially a follow up of previous commit
403af25e9da77dbf7aa295ccd901af3bdcd6f889
2014-05-16 19:35:06 -04:00
Chris Beck
94fdab4389 add sighted events unit tests 2014-05-16 18:09:52 -04:00
Chris Beck
9df026f8e8 move test_grunt_tod_damage map to a map file 2014-05-16 17:11:27 -04:00
Chris Beck
0201fe3247 put generic unit test map in its own file 2014-05-16 17:05:31 -04:00
Groggy Dice
93353ee0a6 wmllint: add option to turn off missing side= key warning 2014-05-16 01:40:28 -04:00
Groggy Dice
d866189a0e wmllint: warn about no side key in [*_shroud],[gold],[modify_side/ai]
Those who are updating from old UMC may otherwise be caught unawares by the
change from defaulting to side 1 when the side key is missing, to all
sides. Later we will have an option to turn off this warning.

Since the insertion of an attribute line is now commented out, it may be
questioned whether this still belongs in hack_syntax. However, at some
point the plan is to give users an option to insert the side= key.
2014-05-16 01:40:25 -04:00
Groggy Dice
1a794a2d1e wmllint: warn about no side key in [set/(dis)allow_recruit],[store_gold]
Those who are updating from old UMC may otherwise be caught unawares by the
change from defaulting to side 1 when the side key is missing, to all
sides. Later we will have an option to turn off this warning.
2014-05-16 01:40:23 -04:00
Groggy Dice
e3adf001a8 html.py: hone regexes for URL linking
First, a couple of extraneous quotes were left in the second regex around
"</a>".

Second, it is possible that a period or question mark could be used to end
a sentence, rather than be part of the URL. So check that these characters
are followed by an alphanumeric character to make them part of the URL.
2014-05-16 01:40:20 -04:00
Chris Beck
7b6a1ec74d fixup messed up whitespace and similar 2014-05-15 22:12:59 -04:00
Groggy Dice
ec3c65d4c1 wmllint: put off dryrun's verbosity check until after options are processed
Per discussion with Elvish Hunter on the forum. Having dryrun check for a
minimum verbosity level during the options for loop meant that -vd would
set the verbosity level to 1, while -dv would set it to 2.
2014-05-15 03:53:07 -04:00
Groggy Dice
cc059b64f6 style.css: no margin-bottom for <pre> 2014-05-15 03:53:04 -04:00
Groggy Dice
65b273edb1 data/campaigns: correct "... then" to "... than"
Inspired by seeing a spelling correction by Vultraz in the logs back in
February.

Cannot be backported to 1.11 yet due to the stringfreeze.
2014-05-15 03:53:01 -04:00
Alexander van Gessel
d30f8ff34b Make wesnoth load on 800x480 again
This reduces a hard spacer from 50 to 20 pixels in size. It does not seem to
have any visual effects.
2014-05-14 11:59:14 +02:00
Chris Beck
fdf750cbfd Merge branch 'fixup_unit_test_replays' 2014-05-14 01:32:04 -04:00
Chris Beck
89f67d1a5d add fixed_lua_random_replay test 2014-05-13 21:27:17 -04:00
Chris Beck
92bbf8c02c add "break replay with lua random" test 2014-05-13 20:58:42 -04:00
ln-zookeeper
9312420c08 Fix RECRUIT_UNIT_VARIATIONS not ensuring full hp 2014-05-14 00:15:22 +03:00
Chris Beck
91d545c7d7 fixup test directory
C++ tests load from /data/test/ again, and the _main includes in
data/ and data/test/ are fixed up to accomodate this.

This fixes up cc138a4ed96f3ac1f8c5130aa6842d1429013da4
2014-05-12 11:43:55 -04:00
Chris Beck
c52e5ed410 add sanity checks for unit test mechanism
also, reorganize the test schedule file
2014-05-11 01:57:49 -04:00
Chris Beck
e3d47b5f02 rename wml unit tests
tests should have helpful names and not numbers
2014-05-11 01:38:09 -04:00
Chris Beck
a37ec8bbdb make [command] [attack] handler a bit friendlier
Now, it won't warn about mismatch with gamestate when you don't
specify attacker_type or defender_type.

Simplify unit test 6 accordingly.
2014-05-10 22:41:54 -04:00
Chris Beck
654c066550 refactor test #6 to use [do_command] 2014-05-10 22:26:39 -04:00
Chris Beck
c611481e26 fixup readme.txt
fixed a typo, added a clarifying sentence about C++ / WML tests
2014-05-09 23:37:03 -04:00
Chris Beck
851519cd07 enable linger mode to unit test macros ASSERT, RETURN
I initially had linger mode off in the endlevel tags of these
macros, to make sure they didn't block the end of noninteractive
scenarios.

But it turns out its better to have it on. It doesn't block the
tests when they run noninteractively, and it means that if a test
fails, you can boot it up with --showgui, and then run :inspect
from linger mode to see what happened. If you don't have linger
mode, then even with --showgui the failed test closes out too
quickly.
2014-05-09 23:04:03 -04:00
fendrin
f95f5a4c94 Fix tab ---> spaces issue. 2014-05-09 22:05:04 +02:00
fendrin
3c9ea89068 Merge branch 'mod'
Conflicts:
	changelog
	players_changelog
2014-05-09 21:45:17 +02:00
fendrin
b4ea561e37 Support for total conversions, so called "cores". 2014-05-09 21:36:36 +02:00
Chris Beck
8f10e6e84c fixup whitespace in unit_test_5.cfg 2014-05-09 01:47:13 -04:00
Chris Beck
e96f6e3ef2 add unit tests 5 and 6
Unit test 5 checks that units placed at off-map coordinates end up
in the recall list of their side.

Unit test 6 checks that grunts (without traits) are doing the
right amount of damage at day, dusk, and night.

Also add these to the script.
2014-05-09 00:00:17 -04:00
Chris Beck
9df86d5420 add unit test 4, which AI wrote in github comments 2014-05-08 17:51:21 -04:00