diff --git a/Assets/Mirror/Runtime/AssemblyInfo.cs b/Assets/Mirror/Runtime/AssemblyInfo.cs index 7dbc9d170..f561b333a 100644 --- a/Assets/Mirror/Runtime/AssemblyInfo.cs +++ b/Assets/Mirror/Runtime/AssemblyInfo.cs @@ -2,3 +2,5 @@ [assembly: InternalsVisibleTo("Mirror.Tests")] [assembly: InternalsVisibleTo("Mirror.Tests.Runtime")] +[assembly: InternalsVisibleTo("Mirror.Tests.Performance")] +[assembly: InternalsVisibleTo("Mirror.Tests.Performance.Runtime")] diff --git a/Assets/Mirror/Tests/Performance.meta b/Assets/Mirror/Tests/Performance.meta new file mode 100644 index 000000000..e83566019 --- /dev/null +++ b/Assets/Mirror/Tests/Performance.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e0b34ea3c905e3c42aaf95c1572edb1a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Performance/Editor.meta b/Assets/Mirror/Tests/Performance/Editor.meta new file mode 100644 index 000000000..a4f42a1a9 --- /dev/null +++ b/Assets/Mirror/Tests/Performance/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2c40e1b4653f9ca4b928a0ff52f33c60 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Performance/Editor/Mirror.Tests.Performance.asmdef b/Assets/Mirror/Tests/Performance/Editor/Mirror.Tests.Performance.asmdef new file mode 100644 index 000000000..9564a8b47 --- /dev/null +++ b/Assets/Mirror/Tests/Performance/Editor/Mirror.Tests.Performance.asmdef @@ -0,0 +1,23 @@ +{ + "name": "Mirror.Tests.Performance", + "references": [ + "Unity.PerformanceTesting", + "Mirror", + "Mirror.Components", + "Mirror.Tests.Common" + ], + "optionalUnityReferences": [ + "TestAssemblies" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [ + "UNITY_INCLUDE_TESTS" + ] +} \ No newline at end of file diff --git a/Assets/Mirror/Tests/Performance/Editor/Mirror.Tests.Performance.asmdef.meta b/Assets/Mirror/Tests/Performance/Editor/Mirror.Tests.Performance.asmdef.meta new file mode 100644 index 000000000..002753282 --- /dev/null +++ b/Assets/Mirror/Tests/Performance/Editor/Mirror.Tests.Performance.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 6ac82bd0f79158140826224aad56b5e3 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Performance/Runtime.meta b/Assets/Mirror/Tests/Performance/Runtime.meta new file mode 100644 index 000000000..8375bb588 --- /dev/null +++ b/Assets/Mirror/Tests/Performance/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5f902e7dc9ebba44fa9ed637a824ddb8 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mirror/Tests/Performance/Runtime/Mirror.Tests.Performance.Runtime.asmdef b/Assets/Mirror/Tests/Performance/Runtime/Mirror.Tests.Performance.Runtime.asmdef new file mode 100644 index 000000000..480387559 --- /dev/null +++ b/Assets/Mirror/Tests/Performance/Runtime/Mirror.Tests.Performance.Runtime.asmdef @@ -0,0 +1,21 @@ +{ + "name": "Mirror.Tests.Performance.Runtime", + "references": [ + "Unity.PerformanceTesting", + "Mirror", + "Mirror.Components", + "Mirror.Tests.Common" + ], + "optionalUnityReferences": [ + "TestAssemblies" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [ + "UNITY_INCLUDE_TESTS" + ] +} \ No newline at end of file diff --git a/Assets/Mirror/Tests/Performance/Runtime/Mirror.Tests.Performance.Runtime.asmdef.meta b/Assets/Mirror/Tests/Performance/Runtime/Mirror.Tests.Performance.Runtime.asmdef.meta new file mode 100644 index 000000000..d146fe575 --- /dev/null +++ b/Assets/Mirror/Tests/Performance/Runtime/Mirror.Tests.Performance.Runtime.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 98f4e20eb641b974bab6c080624bb1ae +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/manifest.json b/Packages/manifest.json index bd0c3485a..acaaa0087 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -5,6 +5,7 @@ "com.unity.collab-proxy": "1.2.15", "com.unity.package-manager-ui": "2.0.3", "com.unity.purchasing": "2.0.3", + "com.unity.test-framework.performance": "0.1.50-preview", "com.unity.textmeshpro": "1.3.0", "com.unity.modules.ai": "1.0.0", "com.unity.modules.animation": "1.0.0", @@ -36,5 +37,8 @@ "com.unity.modules.vr": "1.0.0", "com.unity.modules.wind": "1.0.0", "com.unity.modules.xr": "1.0.0" - } -} + }, + "testables": [ + "com.unity.test-framework.performance" + ] +} \ No newline at end of file