open-adventure/tests
2017-07-09 14:58:44 -04:00
..
axeorama.chk Fixed feed command and white space in tests 2017-07-05 15:41:36 -04:00
axeorama.log Capture correct behavior from seed 2017-07-05 15:41:36 -04:00
backfail.chk Coverage - Test going back when you can't. 2017-06-29 10:57:34 -04:00
backfail.log Coverage - Test going back when you can't. 2017-06-29 10:57:34 -04:00
backfailmaze.chk Grammar fix. 2017-07-04 09:04:10 -04:00
backfailmaze.log Remove a bad command from a check log. 2017-07-03 10:10:14 -04:00
barehands.chk Deal around newline-only lines pruned to zero-lenght 2017-07-07 11:21:37 +03:00
barehands.log Deal around newline-only lines pruned to zero-lenght 2017-07-07 11:21:37 +03:00
bearbridge.chk Fix dead bear tests 2017-07-08 20:02:30 +03:00
bearbridge.log Fix dead bear tests 2017-07-08 20:02:30 +03:00
breakmirror.chk Some test improvements 2017-07-06 11:04:07 +03:00
breakmirror.log Some test improvements 2017-07-06 11:04:07 +03:00
breakvase.chk Clear login in bvreak 2017-07-06 18:23:07 +03:00
breakvase.log Clear login in bvreak 2017-07-06 18:23:07 +03:00
carrybird.chk Coverage -- intransitive attack 2017-07-02 21:42:42 -04:00
carrybird.log Coverage -- intransitive attack 2017-07-02 21:42:42 -04:00
carryfreebird.chk Test coverage - add lots more coverage from actions.c 2017-06-29 17:05:48 -04:00
carryfreebird.log Test coverage - add lots more coverage from actions.c 2017-06-29 17:05:48 -04:00
cheatresume.chk Create a cheater to test strange save/resume cases. 2017-06-26 15:07:09 -04:00
cheatresume.log Create a cheater to test strange save/resume cases. 2017-06-26 15:07:09 -04:00
coverage_dungeon.html.tpl Made YAML coverage test work with variable messages (%s, %d, etc.) 2017-07-08 19:37:51 -04:00
coverage_dungeon.py Made YAML coverage test work with variable messages (%s, %d, etc.) 2017-07-08 19:37:51 -04:00
death-jump.chk
death-jump.log
decheck
defeat.chk Test cover all of discard 2017-07-05 19:12:05 +03:00
defeat.log Test cover all of discard 2017-07-05 19:12:05 +03:00
dragon_secret5.chk Some fuzzing-generated tests, with possible coverage redundancies 2017-07-09 20:25:39 +03:00
dragon_secret5.log Clean up test titles. 2017-07-09 14:58:44 -04:00
drinkfail.chk Test coverage - drink with no valid object 2017-06-19 17:33:32 -04:00
drinkfail.log Test coverage - drink with no valid object 2017-06-19 17:33:32 -04:00
dropcagedbird.chk Cover branch last branch of bird action 2017-07-03 05:30:46 +03:00
dropcagedbird.log Cover branch last branch of bird action 2017-07-03 05:30:46 +03:00
drown.chk Some test improvements 2017-07-06 11:04:07 +03:00
drown.log Some test improvements 2017-07-06 11:04:07 +03:00
dwarf.chk Grammar fix. 2017-07-04 09:04:10 -04:00
dwarf.log
dwarf_alternative.chk Some fuzzing-generated tests, with possible coverage redundancies 2017-07-09 20:25:39 +03:00
dwarf_alternative.log Some fuzzing-generated tests, with possible coverage redundancies 2017-07-09 20:25:39 +03:00
eggs_done.chk Tests for failing with the golden eggs 2017-07-09 20:35:24 +03:00
eggs_done.log Tests for failing with the golden eggs 2017-07-09 20:35:24 +03:00
eggs_vanish.chk Tests for failing with the golden eggs 2017-07-09 20:35:24 +03:00
eggs_vanish.log Tests for failing with the golden eggs 2017-07-09 20:35:24 +03:00
endgame428.chk Grammar fix. 2017-07-04 09:04:10 -04:00
endgame428.log
fillfail.chk Test coverage - add lots more coverage from actions.c 2017-06-29 17:05:48 -04:00
fillfail.log Test coverage - add lots more coverage from actions.c 2017-06-29 17:05:48 -04:00
fillvase.chk Coverage -- more odd actions 2017-07-04 17:41:42 -04:00
fillvase.log Coverage -- more odd actions 2017-07-04 17:41:42 -04:00
flyrug.chk Test coverage -- more corner cases in actions.c 2017-06-20 18:43:19 -04:00
flyrug.log Test coverage -- more corner cases in actions.c 2017-06-20 18:43:19 -04:00
hint_dark.chk Fuzzed tests for two of untested hint conditions 2017-07-07 22:41:53 +03:00
hint_dark.log Fuzzed tests for two of untested hint conditions 2017-07-07 22:41:53 +03:00
hint_grate.chk Test Coverage - elicit hints for grate and snake 2017-06-27 16:13:49 -04:00
hint_grate.log Test Coverage - elicit hints for grate and snake 2017-06-27 16:13:49 -04:00
hint_jade.chk Last unfired test - for getting the jade (better start over!) 2017-07-09 20:28:15 +03:00
hint_jade.log Last unfired test - for getting the jade (better start over!) 2017-07-09 20:28:15 +03:00
hint_snake.chk Test coverage - add lots more coverage from actions.c 2017-06-29 17:05:48 -04:00
hint_snake.log Test coverage - add lots more coverage from actions.c 2017-06-29 17:05:48 -04:00
hint_urn.chk Fuzzed tests for two of untested hint conditions 2017-07-07 22:41:53 +03:00
hint_urn.log Fuzzed tests for two of untested hint conditions 2017-07-07 22:41:53 +03:00
illformed.chk Two more lines of coverage; more cleanup for macros 2017-07-09 20:25:28 +03:00
illformed.log Two more lines of coverage; more cleanup for macros 2017-07-09 20:25:28 +03:00
intransitivecarry.chk Test coverage -- intransitive carry when one object is present 2017-06-19 17:33:32 -04:00
intransitivecarry.log Test coverage - failure to fill 2017-06-19 17:33:32 -04:00
lampdim.chk Grammar fix. 2017-07-04 09:04:10 -04:00
lampdim.log more tests 2017-07-02 10:16:13 -04:00
lampdim2.chk Grammar fix. 2017-07-04 09:04:10 -04:00
lampdim2.log Test coverage -- more corner cases in actions.c 2017-06-20 18:43:19 -04:00
lampdim3.chk Grammar fix. 2017-07-04 09:04:10 -04:00
lampdim3.log Coverage - Die while closing after lamp dim 2017-06-29 15:30:22 -04:00
listenloud.chk Grammar fix. 2017-07-04 09:04:10 -04:00
listenloud.log Test coverage -- additional coverage in actions.c 2017-06-27 16:13:49 -04:00
lockchain.chk Expand test coverage, partly fixing Gitlab issue #23. 2017-07-08 08:59:28 -04:00
lockchain.log Expand test coverage, partly fixing Gitlab issue #23. 2017-07-08 08:59:28 -04:00
logopt.chk Completely wire vocab words in YAML to the code. 2017-06-29 01:59:37 -07:00
logopt.log Jettison the -s option. 2017-07-01 07:22:53 -07:00
magicword.chk Test Coverage -- lots of new pieces of actions.c 2017-06-21 12:14:24 -04:00
magicword.log Test Coverage -- lots of new pieces of actions.c 2017-06-21 12:14:24 -04:00
Makefile Now YAML coverage test generates a nice HTML template 2017-07-07 22:41:59 -04:00
mazehint.chk Grammar fix. 2017-07-04 09:04:10 -04:00
mazehint.log Improve test coverage. 2017-06-18 11:36:03 -04:00
notrident.chk Coverage -- more odd actions 2017-07-04 17:41:42 -04:00
notrident.log Coverage -- more odd actions 2017-07-04 17:41:42 -04:00
ogre_no_dwarves.chk Test for failure to deal with ogre by attacking him 2017-07-09 20:39:14 +03:00
ogre_no_dwarves.log Test for failure to deal with ogre by attacking him 2017-07-09 20:39:14 +03:00
ogrehint.chk Trigger 'NO_EDIBLES' message 2017-07-05 08:37:04 +03:00
ogrehint.log Trigger 'NO_EDIBLES' message 2017-07-05 08:37:04 +03:00
oilplant.chk Make a test more explicit. 2017-07-05 11:47:10 -04:00
oilplant.log Make a test more explicit. 2017-07-05 11:47:10 -04:00
oldstyle.chk Magic-number elimination and fix 2017-07-06 17:55:56 +03:00
oldstyle.log Magic-number elimination and fix 2017-07-06 17:55:56 +03:00
panic.chk Grammar fix. 2017-07-04 09:04:10 -04:00
panic.log Improve test coverage. 2017-06-18 16:08:09 -04:00
panic2.chk Grammar fix. 2017-07-04 09:04:10 -04:00
panic2.log Improve test coverage. 2017-06-18 16:08:09 -04:00
pirate.chk Grammar fix. 2017-07-04 09:04:10 -04:00
pirate.log Quick-fix the 'pillo bug'. 2017-06-21 22:43:16 -07:00
pirate_carry.chk Some fuzzing-generated tests, with possible coverage redundancies 2017-07-09 20:25:39 +03:00
pirate_carry.log Some fuzzing-generated tests, with possible coverage redundancies 2017-07-09 20:25:39 +03:00
pirate_pyramid.chk Clean up test titles. 2017-07-09 14:58:44 -04:00
pirate_pyramid.log Clean up test titles. 2017-07-09 14:58:44 -04:00
pitfall.chk Improve test coverage. 2017-06-19 07:33:40 -04:00
pitfall.log Improve test coverage. 2017-06-19 07:33:40 -04:00
plover.chk Grammar fix. 2017-07-04 09:04:10 -04:00
plover.log Repair plover teleport and add a test for it. 2017-06-18 15:05:17 -04:00
README
reincarnate.chk
reincarnate.log
resumefail.chk Save/resume fail test coverage -- test works in Docker now 2017-06-19 13:09:15 -04:00
resumefail.log Save/resume fail test coverage -- test works in Docker now 2017-06-19 13:09:15 -04:00
resumefail2.chk Bump save file version number. 2017-07-02 09:55:53 -07:00
resumefail2.log Clean up test titles. 2017-07-09 14:58:44 -04:00
savefail.chk Save/resume fail test coverage -- test works in Docker now 2017-06-19 13:09:15 -04:00
savefail.log Save/resume fail test coverage -- test works in Docker now 2017-06-19 13:09:15 -04:00
saveresume.1.chk Documentation and comment cleanup. 2017-06-29 16:37:07 -04:00
saveresume.1.log Documentation and comment cleanup. 2017-06-29 16:37:07 -04:00
saveresume.2.chk Documentation and comment cleanup. 2017-06-29 16:37:07 -04:00
saveresume.2.log Documentation and comment cleanup. 2017-06-29 16:37:07 -04:00
saveresumeopt.chk Fixed -r option. Added test to make sure it doesn't break later. 2017-07-02 01:36:28 -04:00
saveresumeopt.log Fixed -r option. Added test to make sure it doesn't break later. 2017-07-02 01:36:28 -04:00
seedcrash.chk Grammar fix. 2017-07-04 09:04:10 -04:00
seedcrash.log Reduce verbosity. 2017-06-15 21:36:06 -04:00
snake_food.chk
snake_food.log
splatter.chk Grammar fix. 2017-07-04 09:04:10 -04:00
splatter.log Improve test coverage. 2017-06-30 12:06:41 -04:00
trident.chk Grammar fix. 2017-07-04 09:04:10 -04:00
trident.log
turnpenalties.chk
turnpenalties.log
urntest.chk Test for filling full bottle with different liquid 2017-07-04 20:35:03 +03:00
urntest.log Test for filling full bottle with different liquid 2017-07-04 20:35:03 +03:00
urntest2.chk Coverage -- more odd actions 2017-07-04 17:41:42 -04:00
urntest2.log Coverage -- more odd actions 2017-07-04 17:41:42 -04:00
urntest3.chk Coverage -- more odd actions 2017-07-04 17:41:42 -04:00
urntest3.log Coverage -- more odd actions 2017-07-04 17:41:42 -04:00
vending.chk Use the raw buffer in tr command structure for editing. 2017-07-03 12:52:28 -04:00
vending.log Coverage -- intransitive attack 2017-07-02 21:42:42 -04:00
wakedwarves.chk Grammar fix. 2017-07-04 09:04:10 -04:00
wakedwarves.log
wakedwarves2.chk Grammar fix. 2017-07-04 09:04:10 -04:00
wakedwarves2.log Unspk and streamline eat command 2017-07-03 06:07:57 +03:00
wakedwarves3.chk Magic-number elimination and fix 2017-07-06 17:55:56 +03:00
wakedwarves3.log Magic-number elimination and fix 2017-07-06 17:55:56 +03:00
water_plant2.chk Test for selecting different plants 2017-07-09 20:36:41 +03:00
water_plant2.log Clean up test titles. 2017-07-09 14:58:44 -04:00
weirdbird.chk Undid unspeaking of wave, fixed test again. 2017-07-03 00:47:17 +03:00
weirdbird.log Undid unspeaking of wave, fixed test again. 2017-07-03 00:47:17 +03:00
weirddwarf.chk Two more lines of coverage; more cleanup for macros 2017-07-09 20:25:28 +03:00
weirddwarf.log Two more lines of coverage; more cleanup for macros 2017-07-09 20:25:28 +03:00
wittsend.chk Grammar fix. 2017-07-04 09:04:10 -04:00
wittsend.log
woodshint.chk Use the raw buffer in tr command structure for editing. 2017-07-03 12:52:28 -04:00
woodshint.log Test modification for little more coverage 2017-06-30 23:26:18 -04:00

= Notes on the test machinery = 

== Understanding and running tests ==

A .log extension means it's a game log
A .chk extension means it's expected output from a test

The test files are run in alphabetical order. This allows you to
ensure certain tests are run in a particular order merely by giving
them appropriate names, e.g.: test.1.log, test.2.log, test.3.log. This
is useful for testing save and resume.

In general, a file named foo.chk is the expected output from the game log
foo.log.  To add new tests, just drop log files in this directory.

To see summary lines from all tests, 'make testlist'.  The summary lines
are those led with ##; you should have one such descriptive line at the
head of each file.

To run the tests, "make regress".

To remake the check files, "make buildregress".

== Composing tests ==

The simplest way to make a test is to simply play a game with the -l
option giving a log path.  Commands will be captured to that log.

To re-use a command sequence from an existing log, run advent -s and
paste it to the advent command log from the clipboard.  If you don't
use -s to disable advanced ediiting, the code used for that will consume
the first line of the paste and discare the rest.  This is almost
certainly not what you want.

To see where we can use more tests, have a look at our test coverage
report:

http://esr.gitlab.io/open-adventure/coverage/

Improvements in test coverage are always welcome.

// end