Commit graph

280 commits

Author SHA1 Message Date
Aaron Traas
87d7117ddd YAML coverage - TROLL_BLOCKS arbitrary message 2017-07-15 18:10:29 -04:00
Aaron Traas
ac4e43196c Full refactor of YAML dungeon generator.
The big difference is that the differences between the entity types
is concentrated in one place.

Also concentrated all File I/O in main function, moved most processing
outside of main
2017-07-15 17:19:29 -04:00
Aaron Traas
fb86d64b20 First stage cleanup of YAML dungeon generator. Less hard-coded stuff.
Next stage will be rewrite so report object contains all of the keys
and coverage values, so we're not scribbling over DB all the time, and
we don't have to walk over things multiple times, and can keep HTML
generation in one place
2017-07-15 13:10:39 -04:00
Eric S. Raymond
fefc1ff486 Improve symbol coverage. 2017-07-15 13:00:48 -04:00
Aaron Traas
33dfafc705 YAML coverage - last object message 2017-07-14 13:13:24 -04:00
Aaron Traas
040e027a71 YAML coverage - object messages 100% covered 2017-07-14 12:29:09 -04:00
Jason S. Ninneman
596a15457d Dragon attack code no longer edits the command struct.
This also fixes a minor bug where refusing to attack the dragon
costs the player two turns instead of one.
2017-07-14 09:18:55 -07:00
Eric S. Raymond
61570c700b More coverage improvements. 2017-07-14 12:00:29 -04:00
Eric S. Raymond
66fba512a7 Partially address GitLab issue #27: arbitrary_messages unreachable 2017-07-14 11:33:22 -04:00
Aaron Traas
e4aed91401 YAML coverage - all the listen messages 2017-07-13 23:16:24 -04:00
Aaron Traas
7220425015 YAML coverage - cleanup and comments 2017-07-13 21:52:27 -04:00
Aaron Traas
52cdc8b87a YAML coverage - locations 100% covered 2017-07-13 21:52:27 -04:00
Aaron Traas
342c27494d YAML coverage - more locations and message
- LOC_DEADCRAWL
- CROSS_BRIDGE
- LOC_BOULDERS2.short
- LOC_WINDOW1
2017-07-13 21:52:27 -04:00
Aaron Traas
4bffb10094 YAML coverage - hints 100% covered 2017-07-13 21:52:27 -04:00
Aaron Traas
99595f6a2a YAML coverage parser bug fixed -- handling \n and \t correctly 2017-07-13 21:52:27 -04:00
Aaron Traas
2ec9c7cc1a YAML coverage parser fixed to equate "NO_MESSAGE" with None 2017-07-13 21:52:27 -04:00
Aaron Traas
a6e80af64f adventure.yaml - coverage of all scoring class thresholds 2017-07-13 21:52:27 -04:00
Aaron Traas
e696fed6db Prompt and taunt you after 3rd and final death
Fixed a bug where you'd not be asked about whether to be resurrected a
final time. Now you are.
2017-07-13 21:52:27 -04:00
NHOrus
761d660cd2 Test that troll really retuns after we take eggs 2017-07-13 21:52:27 -04:00
Aaron Traas
0e2c851131 Expand scope of coverage_dungeon.py - actions and obituaries 2017-07-13 21:52:27 -04:00
Aaron Traas
e176039b01 Expand scope of coverage_dungeon.py - specials 2017-07-13 21:52:13 -04:00
Aaron Traas
39cc166979 Expand scope of coverage_dungeon.py
hints, classes and turn thrusholds are now supported
2017-07-12 17:52:56 -04:00
Eric S. Raymond
24f29c6ba7 Cosmetic text fix. 2017-07-12 13:48:55 -04:00
Aaron Traas
b5badcacc8 Forcing floating point division for % coverage, so we don't show 0% 2017-07-12 08:56:50 -04:00
Eric S. Raymond
4a4c113624 Prevent game from uttering solecisms about the "floor" when outside. 2017-07-12 00:19:16 -04:00
Jason S. Ninneman
bd1b893263 Python-agnosticize coverage_dungeon.py. 2017-07-11 23:14:40 +00:00
Eric S. Raymond
bcacb84166 Record a fix. 2017-07-11 19:13:24 -04:00
Eric S. Raymond
7ddbe04632 Demonstrate that we don't have the vase bug. 2017-07-11 19:06:10 -04:00
Aaron Traas
92ddbba212 LOC_* coverage - at 98.4% 2017-07-11 17:35:23 -04:00
Eric S. Raymond
d7bad65d5b More comment polishing. 2017-07-11 04:42:36 -04:00
Eric S. Raymond
9a14d2e1cd Comment polishing. 2017-07-11 04:35:00 -04:00
Aaron Traas
21c36003cd Test message corrected 2017-07-10 16:04:48 -04:00
Aaron Traas
39fbd7a56f Revert "Remove 'version' test. Framework plays badly with variable output."
This reverts commit 13f7304081.
2017-07-10 16:04:48 -04:00
Aaron Traas
3bfaff447b Coverage - bird attack snake in endgame 2017-07-10 12:53:13 -04:00
Eric S. Raymond
13f7304081 Remove 'version' test. Framework plays badly with variable output.
We'll have to come up with generic solution to this.
2017-07-10 12:18:35 -04:00
NHOrus
0ea7dcf1a0 Version bump in tests 2017-07-10 15:11:19 +03:00
NHOrus
5ae50f1580 Fail getting some more hints by disqualifying conditions 2017-07-10 15:10:46 +03:00
NHOrus
6ae7d0bf16 Two different failures to get hint for ogre 2017-07-10 15:10:46 +03:00
NHOrus
af6ee946ef Fail to feed the snake, find the pirate before he pounces 2017-07-10 15:10:46 +03:00
Aaron Traas
91c9fa3066 Coverage: LOC_DIFFERENT* and fail to feed bear 2017-07-09 15:32:14 -04:00
Aaron Traas
f43bacfa0f Sort coverage report to make more readable 2017-07-09 15:31:11 -04:00
Eric S. Raymond
034a13595b Clean up test titles. 2017-07-09 14:58:44 -04:00
NHOrus
173b1b1acd Test for failure to deal with ogre by attacking him 2017-07-09 20:39:14 +03:00
NHOrus
9b879b41cb Test for selecting different plants 2017-07-09 20:36:41 +03:00
NHOrus
5cee3cc785 Tests for failing with the golden eggs 2017-07-09 20:35:24 +03:00
NHOrus
7ba34df739 Last unfired test - for getting the jade (better start over!) 2017-07-09 20:28:15 +03:00
NHOrus
2b22871cce Some fuzzing-generated tests, with possible coverage redundancies 2017-07-09 20:25:39 +03:00
NHOrus
53b68161ff Two more lines of coverage; more cleanup for macros 2017-07-09 20:25:28 +03:00
Aaron Traas
926a806db9 Made YAML coverage test work with variable messages (%s, %d, etc.) 2017-07-08 19:37:51 -04:00
NHOrus
c0817b6bb5 Fix dead bear tests 2017-07-08 20:02:30 +03:00