Skip to content

Commit c8f99d5

Browse files
jechterjamesmcgill
andauthored
CHANGE: Fix test framework define (#1618)
* Fix test framework define * changelog * wrap defines * use override references * Revert "wrap defines" This reverts commit 8bcaaf3. Co-authored-by: James McGill <[email protected]>
1 parent f4fb4f2 commit c8f99d5

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ however, it has to be formatted properly to pass verification tests.
2525
### Actions
2626
- Extended input action code generator (`InputActionCodeGenerator.cs`) to support optional registration and unregistration of callbacks for multiple callback instances via `AddCallbacks(...)` and `RemoveCallbacks(...)` part of the generated code. Contribution by [Ramobo](https://github.com/Ramobo) in [#889](https://github.com/Unity-Technologies/InputSystem/pull/889).
2727

28+
### Changed
29+
- Changed define requirements of `Unity.InputSystem.TestFramework`, so that it can be used by other packages without setting the `com.unity.inputsystem` package to be testable in the project manifest.
2830

2931
## [1.4.4] - 2022-11-01
3032

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
{
22
"name": "Unity.InputSystem.TestFramework",
33
"references": [
4-
"GUID:75469ad4d38634e559750d17036d5f7c"
5-
],
6-
"optionalUnityReferences": [
7-
"TestAssemblies"
4+
"Unity.InputSystem",
5+
"UnityEngine.TestRunner",
6+
"UnityEditor.TestRunner"
87
],
98
"includePlatforms": [],
109
"excludePlatforms": [],
1110
"allowUnsafeCode": true,
12-
"overrideReferences": false,
13-
"precompiledReferences": [],
11+
"overrideReferences": true,
12+
"precompiledReferences": [
13+
"nunit.framework.dll"
14+
],
1415
"autoReferenced": false,
15-
"defineConstraints": ["UNITY_INCLUDE_TESTS"],
16+
"defineConstraints": ["UNITY_TESTS_FRAMEWORK"],
17+
"versionDefines": [
18+
{
19+
"name": "com.unity.test-framework",
20+
"expression": "",
21+
"define": "UNITY_TESTS_FRAMEWORK"
22+
}
23+
],
1624
"versionDefines": []
1725
}

0 commit comments

Comments
 (0)