Search Issue Tracker

Duplicate

Votes

0

Found in [Package]

1.1.33

1.3.7

2.0.1-pre.18

Issue ID

DSTR-857

Regression

No

Input System InputTestFixture Class throws "CS0117" errors when building a Player with Test Runner

Package: Test-Framework

-

How to reproduce:
1. Open the “InputTestRepro_FINAL” project
2. Open the Test Runner (Window > General > Test Runner)
3. Select the “Play Mode” section
4. Select “Run All Test”

Expected result: The Player is successfully built and tests are also executed successfully
Actual result: The Player fails to build with “CS0117” errors thrown in the Console

Reproduced with: 1.1.33, 1.3.7 (2021.3.28f1, 2022.3.4f1, 2023.1.3f1, 2023.2.0a21), 2.0.1-pre.18 (2021.3.28f1, 2022.3.4f1)
Could not test with: 2.0.1-pre.18 (2023.1.3f1, 2023.2.0a21) (“The XDK Xbox One platform was removed in 2021.1” error is thrown by Test-Framework package)

Reproduced on: macOS 12.6.5 (by reporter), Windows 11

Notes:
1. With Test-Framework 2.0.1-pre.18 the interface has somewhat changed → in the Test Runner window on the top left set “Run Location” to “On Player”, then select “Run All” on the bottom right of the window
2. Not reproducible when line 22 is removed in the “PlayerWithTestsModifier” Script
3. In 2021.3.28f1 with Test-Framework 2.0.1-pre.18 the issue was still reproducible when line 22 is removed in the “PlayerWithTestsModifier” Script

Errors thrown to the Console after a failed build:

Error #1:

{noformat}Library\PackageCache\com.unity.inputsystem@1.6.1\Tests\TestFixture\InputTestFixture.cs(94,29): error CS0117: 'InputSystem' does not contain a definition for 'SaveAndReset'{noformat}

Error #2:

{noformat}Library\PackageCache\com.unity.inputsystem@1.6.1\Tests\TestFixture\InputTestFixture.cs(168,29): error CS0117: 'InputSystem' does not contain a definition for 'Restore'{noformat}

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.