Skip to content

BuildSystemTests.testIOSARGameViewControllerSwiftGeneratedWithExpectedContent fails on develop #1432

Backlog

Description

@untoldengine

Summary

BuildSystemTests.testIOSARGameViewControllerSwiftGeneratedWithExpectedContent fails on develop, independent of any other work in flight. Confirmed via git stash that it fails identically before and after the gizmo-system changes in #1431 — it is not a regression from that PR.

Failure

XCTAssertFalse failed - iOS AR GameViewController should NOT import UntoldEngine standalone (it's in GameScene)

in Tests/UntoldEngineTests/BuildSystemTests.swift, asserting against the generated content of BuildTemplates.getTemplateFilesForIOSAR()'s Sources/{{PROJECT_NAME}}/GameViewController.swift template.

Likely cause

Commit 34dd0e6e ("[Patch] Add missing import UntoldEngine to iOS AR GameViewController template") appears to have added an import UntoldEngine to the iOS AR GameViewController.swift template without updating this test's assertion, which still expects the import to be absent (on the premise that the import belongs in GameScene instead).

Reproduction

swift test --filter BuildSystemTests/testIOSARGameViewControllerSwiftGeneratedWithExpectedContent

or via make testcore, where it is currently the only failing test in the full UntoldEngineTests suite (1835 tests, 1 failure).

Fix

Either revert the import addition from 34dd0e6e if it was unintentional, or update this test's assertion to match the new intended template content — whichever reflects the actual correct generated-project behavior for iOS AR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions