Skip to content

Commit db44d8a

Browse files
author
Unity Technologies
committed
com.unity.test-framework.performance@2.6.0-preview
## [2.6.0] - 2021-01-12 Add build configuration support ## [2.5.1] - 2021-01-05 Fix serialization for Performance Test Report window
1 parent 42d4434 commit db44d8a

File tree

5 files changed

+34
-8
lines changed

5 files changed

+34
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [2.6.0] - 2021-01-12
4+
5+
Add build configuration support
6+
37
## [2.5.1] - 2021-01-05
48

59
Fix serialization for Performance Test Report window

Editor/TestRunBuilder.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Unity.PerformanceTesting.Editor
1919
{
20-
public class TestRunBuilder : IPrebuildSetup, IPostBuildCleanup, IPreprocessBuildWithReport
20+
public class TestRunBuilder : IPrebuildSetup, IPostBuildCleanup, IPreprocessBuildWithReport, IPostprocessBuildWithReport
2121
{
2222
private const string cleanResources = "PT_ResourcesCleanup";
2323

@@ -33,6 +33,11 @@ public void OnPreprocessBuild(BuildReport report)
3333
CreateResourcesFolder();
3434
CreatePerformanceTestRunJson(run);
3535
}
36+
37+
public void OnPostprocessBuild(BuildReport report)
38+
{
39+
Cleanup();
40+
}
3641

3742
public void Setup()
3843
{

Editor/Unity.PerformanceTesting.Editor.asmdef

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "Unity.PerformanceTesting.Editor",
3+
"rootNamespace": "",
34
"references": [
45
"Unity.PerformanceTesting",
56
"UnityEngine.TestRunner",
@@ -15,7 +16,15 @@
1516
"nunit.framework.dll"
1617
],
1718
"autoReferenced": false,
18-
"defineConstraints": [],
19-
"versionDefines": [],
19+
"defineConstraints": [
20+
"UNITY_TESTS_FRAMEWORK"
21+
],
22+
"versionDefines": [
23+
{
24+
"name": "com.unity.test-framework",
25+
"expression": "",
26+
"define": "UNITY_TESTS_FRAMEWORK"
27+
}
28+
],
2029
"noEngineReferences": false
2130
}

Runtime/Unity.PerformanceTesting.asmdef

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@
1313
"nunit.framework.dll"
1414
],
1515
"autoReferenced": false,
16-
"defineConstraints": [],
17-
"versionDefines": [],
16+
"defineConstraints": [
17+
"UNITY_TESTS_FRAMEWORK"
18+
],
19+
"versionDefines": [
20+
{
21+
"name": "com.unity.test-framework",
22+
"expression": "",
23+
"define": "UNITY_TESTS_FRAMEWORK"
24+
}
25+
],
1826
"noEngineReferences": false
1927
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.unity.test-framework.performance",
33
"displayName": "Performance testing API",
4-
"version": "2.5.1-preview",
4+
"version": "2.6.0-preview",
55
"unity": "2019.3",
66
"unityRelease": "0a10",
77
"description": "Extension to the Unity Test framework package. Adds performance testing capabilities and collects configuration metadata.",
@@ -14,11 +14,11 @@
1414
"com.unity.modules.jsonserialize": "1.0.0"
1515
},
1616
"upmCi": {
17-
"footprint": "aec8c28178afc564f56f03da281feb78b13a4aca"
17+
"footprint": "1bcc654f752b7808f30eedbeaf26a577e03a8228"
1818
},
1919
"repository": {
2020
"url": "https://github.cds.internal.unity3d.com/unity/com.unity.test-framework.performance.git",
2121
"type": "git",
22-
"revision": "074103c39b9522ba1a9f954d00c651007f31e3d0"
22+
"revision": "b20a4e88ff5eed1f26478f99b32db49f57987f5c"
2323
}
2424
}

0 commit comments

Comments
 (0)