Skip to content

test: increase coverage - #99

Merged
Joltras merged 3 commits into
devfrom
test/generator-coverage
Aug 15, 2026
Merged

test: increase coverage#99
Joltras merged 3 commits into
devfrom
test/generator-coverage

Conversation

@Joltras

@Joltras Joltras commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Proposed changes

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue.

Types of changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Joltras and others added 3 commits July 25, 2026 16:39
The module-level PIL/tkinter import made every module importing
util_functions (including Floor/Generator) fail on systems without the
Tk system library, blocking headless usage and testing of the
generation logic. Moved it into the only function that needs it.
generator_test.py previously only had a setUp with no actual test
cases, leaving the core dungeon-generation algorithm untested. Adds
tests for start/boss room placement, floor bounds, unique room
coordinates, full reachability (including teleport-room links),
seed determinism, dead-end marking, special room assignment, and
JSON serialization/round-trip/save behavior.
…eneration

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Joltras Joltras changed the title Test/generator coverage test: increase coverage Aug 15, 2026
@Joltras
Joltras merged commit 61386ca into dev Aug 15, 2026
2 checks passed
@Joltras
Joltras deleted the test/generator-coverage branch August 15, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant