open-adventure/tests
2017-06-17 20:43:23 -04:00
..
barehands.chk Improve test coverage. 2017-06-16 15:40:46 -04:00
barehands.log Improve test coverage. 2017-06-16 15:40:46 -04:00
breakmirror.chk Improve test coverage. 2017-06-16 09:05:20 -04:00
breakmirror.log Improve test coverage. 2017-06-16 09:05:20 -04:00
breakvase.chk Address GitLab issue #10: Spurious '>' characters appearing in console output 2017-06-13 08:03:27 -04:00
breakvase.log Test for the "break" verb. 2017-06-11 18:24:35 -04:00
death-jump.chk Massive whitespace update to the test output. 2017-06-11 15:43:38 -07:00
death-jump.log Arrange test coverage of reincarnation code. 2017-06-13 09:48:32 -04:00
decheck Add a small tool for making logs from checkfiles. 2017-06-06 00:52:04 -04:00
defeat.chk Test two defeat cases. 2017-06-17 20:02:41 -04:00
defeat.log Test two defeat cases. 2017-06-17 20:02:41 -04:00
drown.chk Improve test coverage. 2017-06-17 20:43:23 -04:00
drown.log Improve test coverage. 2017-06-17 20:43:23 -04:00
dwarf.chk Massive whitespace update to the test output. 2017-06-11 15:43:38 -07:00
dwarf.log Restory working seed value for dwarf.log. 2017-05-27 09:23:52 -07:00
endgame428.chk Massive whitespace update to the test output. 2017-06-11 15:43:38 -07:00
endgame428.log More test coverage improvements. 2017-06-06 06:59:39 -04:00
fillvase.chk Improve test coverage. 2017-06-14 16:35:10 -04:00
fillvase.log Improve test coverage. 2017-06-14 16:35:10 -04:00
illformed.chk Improve test coverage. 2017-06-17 20:43:23 -04:00
illformed.log Improve test coverage. 2017-06-17 20:43:23 -04:00
lockchain.chk Improve test coverage. 2017-06-17 20:43:23 -04:00
lockchain.log Improve test coverage. 2017-06-17 20:43:23 -04:00
logopt.chk Test coverage of -s and -l options. 2017-06-16 09:54:10 -04:00
logopt.log Test coverage of -s and -l options. 2017-06-16 09:54:10 -04:00
Makefile Test coverage of -s and -l options. 2017-06-16 09:54:10 -04:00
mazehint.chk Fix the mazehint log so it works. 2017-06-16 09:38:54 -04:00
mazehint.log Fix the mazehint log so it works. 2017-06-16 09:38:54 -04:00
ogrehint.chk Repair a checkfile. 2017-06-14 17:03:06 -04:00
ogrehint.log Add test for feeding ogre. 2017-06-14 16:53:45 -04:00
oldstyle.chk Massive whitespace update to the test output. 2017-06-11 15:43:38 -07:00
oldstyle.log Make it possible to pass options to advent from within regression-test loads. 2017-06-04 16:06:21 -04:00
pirate.chk Address GitLab issue #10: Spurious '>' characters appearing in console output 2017-06-13 08:03:27 -04:00
pirate.log Change 'drop pillow' to 'drop pillo' to make the test pass while we sort out a minor bug. 2017-06-11 15:42:25 -07:00
quit.chk Massive whitespace update to the test output. 2017-06-11 15:43:38 -07:00
quit.log Restore regression tests. 2017-05-27 10:51:43 -04:00
README Documentation improvements. 2017-06-13 13:13:30 -04:00
reincarnate.chk Arrange test coverage of reincarnation code. 2017-06-13 09:48:32 -04:00
reincarnate.log Arrange test coverage of reincarnation code. 2017-06-13 09:48:32 -04:00
saveresume.1.chk Massive whitespace update to the test output. 2017-06-11 15:43:38 -07:00
saveresume.1.log Update the save/resume tests for linenoise. 2017-06-08 00:15:03 -07:00
saveresume.2.chk Massive whitespace update to the test output. 2017-06-11 15:43:38 -07:00
saveresume.2.log Update the save/resume tests for linenoise. 2017-06-08 00:15:03 -07:00
seedcrash.chk Add regression test for seed crash bug. 2017-06-15 16:58:48 -04:00
seedcrash.log Reduce verbosity. 2017-06-15 21:36:06 -04:00
snake_food.chk Test for regression from before localizing SPK 2017-06-13 20:49:01 +03:00
snake_food.log Test for regression from before localizing SPK 2017-06-13 20:49:01 +03:00
splatter.chk Test two defeat cases. 2017-06-17 20:02:41 -04:00
splatter.log Test two defeat cases. 2017-06-17 20:02:41 -04:00
trident.chk Address GitLab issue #10: Spurious '>' characters appearing in console output 2017-06-13 08:03:27 -04:00
trident.log Metadata update. 2017-05-31 14:34:32 -04:00
turnpenalties.chk Massive whitespace update to the test output. 2017-06-11 15:43:38 -07:00
turnpenalties.log Test to ensure that the turn count penalties occur. 2017-05-31 13:36:36 -07:00
urntest.chk Add test for urn actions. 2017-06-13 17:02:52 -04:00
urntest.log Correct a typo, and a test for the affected verb. 2017-06-13 17:32:07 -04:00
vending.chk More test coverage of odd cases. 2017-06-13 10:43:06 -04:00
vending.log More test coverage of odd cases. 2017-06-13 10:43:06 -04:00
wakedwarves.chk Improve test coverage. 2017-06-14 05:44:45 -04:00
wakedwarves.log Improve test coverage. 2017-06-14 05:44:45 -04:00
weirdbird.chk Improve test coverage. 2017-06-16 15:27:25 -04:00
weirdbird.log Improve test coverage. 2017-06-16 15:27:25 -04:00
weirddwarf.chk Improve test coverage. 2017-06-13 13:36:27 -04:00
weirddwarf.log Improve test coverage. 2017-06-13 13:36:27 -04:00
wittsend.chk Address GitLab issue #10: Spurious '>' characters appearing in console output 2017-06-13 08:03:27 -04:00
wittsend.log Add a walkthrough that foes nearly to endgame. 2017-06-01 14:36:16 -04:00
woodshint.chk Fix handling of intransitive "say". 2017-06-14 15:15:00 -04:00
woodshint.log More tests of nonsense in the forest. 2017-06-13 17:48:05 -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