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

[REG-1888] Move RGTestUtils into its own test assembly #243

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Conversation

svolokh
Copy link
Contributor

@svolokh svolokh commented Aug 5, 2024

Move RGTestUtils into its own test assembly RegressionGames.TestFramework. Unity Test Runner assemblies should now reference this assembly to use the SDK's test utilities.

This change is a follow-up to a previous discussion (#236 (comment)) about separating the test code from the runtime SDK code. Separating into a different assembly gives us access to the test-only APIs (e.g. NUnit) so we can build/extend on these in the future if desired.

Associated PRs:
https://github.com/Regression-Games/RGBossRoom/pull/62
Regression-Games/RegressionDocs#80

Copy link
Collaborator

@nAmKcAz nAmKcAz left a comment

Choose a reason for hiding this comment

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

Approved with one question

"references": [
"RegressionGames",
"UnityEngine.TestRunner",
"UnityEditor.TestRunner"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this UnityEditor reference work when we run our build tests in docker ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you can see it passing in this PR as well above. I also verified that the tests work when run in standalone mode. It is standard for both play mode and edit mode tests to refer to both the UnityEngine.TestRunner and UnityEditor.TestRunner assemblies (this is the same practice employed by other test framwork libraries too, such as InputSystem.TestFramework).

@svolokh svolokh merged commit 32e950b into main Aug 6, 2024
2 checks passed
@svolokh svolokh deleted the sasha/reg-1888 branch August 6, 2024 16:39
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.

3 participants