Skip to content

Tests: check that Regions are reachable #1034

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Feb 19, 2023
Merged

Tests: check that Regions are reachable #1034

merged 11 commits into from
Feb 19, 2023

Conversation

Berserker66
Copy link
Member

try to prevent errors from unconnected/never reachable Regions

Please format your title with what portion of the project this pull request is
targeting and what it's changing.

ex. "MyGame4: implement new game" or "Docs: add new guide for customizing MyGame3"

What is this fixing or adding?

So, not 100% on if we should actually do this, but at least @PoryGone has indicated it might have saved them some time if this existed. It checks that all Regions are reachable by all-state, with an explicit exclusion list.

How was this tested?

running it

If this makes graphical changes, please attach screenshots.

try to prevent errors from unconnected/never reachable Regions
espeon65536 and others added 4 commits September 21, 2022 12:45
* Tests: note oot's default unreachable regions
* [SM] Fixed failing testAllStateCanReachEverything

- by adding exclusion for Regions used only when corresponding Starting Location is used
- by removing unnecessary VARIA Regions used only for EscapeRando (not supported in AP anyway)

* Update worlds/sm/Regions.py

Co-authored-by: black-sliver <[email protected]>

* Update worlds/sm/Rules.py

Co-authored-by: black-sliver <[email protected]>

* Update worlds/sm/Regions.py

Co-authored-by: black-sliver <[email protected]>

Co-authored-by: black-sliver <[email protected]>
@PoryGone
Copy link
Collaborator

PoryGone commented Dec 7, 2022

As of latest, I believe SA2 should be compatible with these new unit tests. If we introduced new failures with our new content, I'll adjust.

@Berserker66
Copy link
Member Author

remaining failures are SMW @PoryGone and Timespinner @Jarno458
image

@PoryGone
Copy link
Collaborator

remaining failures are SMW PoryGone and Timespinner Jarno458 )

I'll see to adjusting SMW this weekend.

@Jarno458
Copy link
Collaborator

i though we where just going to exclude Timespinner, since its correct with all items collected. depending on your flags entire regions will still be locked off

@Jarno458
Copy link
Collaborator

Jarno458 commented Feb 6, 2023

Timespinners issues should be resolved in #1433

@black-sliver black-sliver merged commit ecd2675 into main Feb 19, 2023
@black-sliver black-sliver deleted the test_region_access branch February 20, 2023 06:09
kindasneaki pushed a commit to kindasneaki/Archipelago that referenced this pull request Jun 28, 2023
* Tests: check that Regions are reachable
try to prevent errors from unconnected/never reachable Regions

* Test region access (ArchipelagoMW#1039)

* Tests: note oot's default unreachable regions

* [SM] Fixed failing testAllStateCanReachEverything (ArchipelagoMW#1087)

* [SM] Fixed failing testAllStateCanReachEverything

- by adding exclusion for Regions used only when corresponding Starting Location is used
- by removing unnecessary VARIA Regions used only for EscapeRando (not supported in AP anyway)

* Update worlds/sm/Regions.py

Co-authored-by: black-sliver <[email protected]>

* Update worlds/sm/Rules.py

Co-authored-by: black-sliver <[email protected]>

* Update worlds/sm/Regions.py

Co-authored-by: black-sliver <[email protected]>

Co-authored-by: black-sliver <[email protected]>

* Update test/general/TestReachability.py

---------

Co-authored-by: espeon65536 <[email protected]>
Co-authored-by: lordlou <[email protected]>
Co-authored-by: black-sliver <[email protected]>
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.

6 participants