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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
],
"references": [
"RegressionGames",
"RegressionGames.TestFramework",
"Unity.InputSystem",
"Unity.InputSystem.TestFramework"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using System;
using System.IO;
using RegressionGames.StateRecorder;
using UnityEditor.Compilation;

#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.Compilation;
#endif

namespace RegressionGames.Editor
Expand Down
3 changes: 3 additions & 0 deletions src/gg.regression.unity.bots/Tests.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/gg.regression.unity.bots/Tests/TestFramework.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "RegressionGames.TestFramework",
"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).

],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": true,
"overrideReferences": true,
"precompiledReferences": [
"nunit.framework.dll"
],
"autoReferenced": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading