Skip to content
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

Create interaction test harness. #27643

Merged
merged 7 commits into from
Dec 23, 2024

Conversation

warriorstar-orion
Copy link
Contributor

What Does This PR Do

This PR implements the skeleton of a new testing harness designed for verifying behavior between multiple objects in scenarios relatively close to in-round behavior. You can see with the sample attack chain-related test that the API is somewhat readable, allowing you to take control of a mob, give it a fake mind, spawn things on it/near it, and have it interact with those things. The goal is to have a slightly cleaner level of abstraction over the actual code performing the actions and provide useful helpers for checking the state of things.

This will probably run into some walls when it comes to mind fidelity but we'll burn that bridge when we get to it.

Why It's Good For The Game

Better tests?

Testing

Wrote em


Declaration

  • I confirm that I either do not require pre-approval for this PR, or I have obtained such approval and have included a screenshot to demonstrate this below.

Changelog

NPFC

@ParadiseSS13-Bot ParadiseSS13-Bot added the -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally label Dec 14, 2024
code/modules/interaction_tests/test_puppeteer.dm Outdated Show resolved Hide resolved
code/modules/interaction_tests/interaction_test.dm Outdated Show resolved Hide resolved
code/modules/interaction_tests/test_puppeteer.dm Outdated Show resolved Hide resolved
@ParadiseSS13-Bot ParadiseSS13-Bot added -Status: Awaiting review This PR is awaiting review from the review team and removed -Status: Awaiting type assignment This PR is waiting for its type to be assigned internally labels Dec 14, 2024
Copy link
Contributor

@lewcc lewcc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me, I just figured I'd drop some notes.

One thing I thought of while looking through this is that we already do have something kind of similar in the realm of deadchat control. I don't know if there would be any interest in expanding upon/somehow integrating that kind of framework?

code/modules/interaction_tests/interaction_test.dm Outdated Show resolved Hide resolved
code/modules/interaction_tests/interaction_test.dm Outdated Show resolved Hide resolved
code/modules/interaction_tests/interaction_test.dm Outdated Show resolved Hide resolved
code/modules/interaction_tests/interaction_test.dm Outdated Show resolved Hide resolved
code/modules/interaction_tests/test_puppeteer.dm Outdated Show resolved Hide resolved
code/modules/interaction_tests/test_puppeteer.dm Outdated Show resolved Hide resolved
@github-actions github-actions bot added the Merge Conflict This PR is merge conflicted label Dec 21, 2024
@github-actions github-actions bot removed the Merge Conflict This PR is merge conflicted label Dec 22, 2024
Copy link
Contributor

@Contrabang Contrabang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Big fan of how it looks now

code/tests/_game_test.dm Outdated Show resolved Hide resolved
code/tests/_game_test.dm Outdated Show resolved Hide resolved
@ParadiseSS13-Bot ParadiseSS13-Bot added -Status: Awaiting merge This PR is ready for merge and removed -Status: Awaiting review This PR is awaiting review from the review team labels Dec 22, 2024
@ParadiseSS13-Bot ParadiseSS13-Bot added -Status: Awaiting review This PR is awaiting review from the review team and removed -Status: Awaiting merge This PR is ready for merge labels Dec 23, 2024
@Burzah Burzah added this pull request to the merge queue Dec 23, 2024
Merged via the queue into ParadiseSS13:master with commit 33eaf8a Dec 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-Status: Awaiting review This PR is awaiting review from the review team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants